@sparkvault/sdk-js 8.6.1 → 8.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1955,12 +1955,12 @@ class SparkLinkHandler {
1955
1955
  /**
1956
1956
  * Identity Modal Styles
1957
1957
  *
1958
- * Enterprise-grade styling following Stripe/Adobe design principles:
1959
- * - Clean, minimal aesthetic with purposeful whitespace
1958
+ * SparkVault design system, product register:
1959
+ * - Quiet slate neutrals; Action Blue carries all interactivity
1960
1960
  * - 4px base spacing unit for consistency
1961
- * - Subtle depth through shadows and borders (not gradients)
1962
- * - Professional typography with clear hierarchy
1963
- * - Refined color palette with single accent
1961
+ * - Hairline borders over shadows; shadows minimal and DS-weighted
1962
+ * - Restrained motion: 120-280ms, standard/decelerate curves only
1963
+ * - One accent per surface; tenant-tintable via --sv-primary
1964
1964
  */
1965
1965
  const STYLE_ID$1 = 'sparkvault-identity-styles';
1966
1966
  /**
@@ -2023,56 +2023,69 @@ function getStyles(options) {
2023
2023
  // The brand accent is driven by the `--sv-primary` / `--sv-primary-hover`
2024
2024
  // CSS custom properties so a host page (e.g. the SparkVault sign-in page) can
2025
2025
  // tint the whole flow to the tenant's brand color by setting them on `:root`.
2026
- // The literals are the fallback - when no host sets the variables the UI is
2027
- // pixel-identical to before. The focus glow is derived from the same accent
2028
- // via color-mix so it tracks the brand too.
2029
- const accent = 'var(--sv-primary, #4F46E5)';
2026
+ // The literals are the fallback - when no host sets the variables the flow
2027
+ // renders in SparkVault Action Blue. The soft focus glow and the two-tone
2028
+ // focus ring are both derived from the same accent via color-mix so they
2029
+ // track the tenant tint too.
2030
+ const accent = 'var(--sv-primary, #216bde)';
2031
+ const surface = isDark ? '#030712' : '#ffffff';
2032
+ // Lightened accent for the outer ring of the two-tone focus indicator
2033
+ // (lands on the design system's #4383eb at the default accent).
2034
+ const focusRingColor = `color-mix(in srgb, ${accent} 80%, white)`;
2030
2035
  const tokens = {
2031
2036
  // Colors
2032
2037
  primary: accent,
2033
- primaryHover: 'var(--sv-primary-hover, #4338CA)',
2038
+ primaryHover: 'var(--sv-primary-hover, #0d5bcd)',
2034
2039
  primaryLight: `color-mix(in srgb, ${accent} ${isDark ? '20%' : '9%'}, transparent)`,
2035
- error: '#DC2626',
2036
- errorLight: isDark ? 'rgba(220, 38, 38, 0.15)' : '#FEF2F2',
2037
- errorBorder: isDark ? 'rgba(220, 38, 38, 0.3)' : '#FECACA',
2040
+ error: isDark ? '#e6443d' : '#b02b27',
2041
+ errorLight: isDark ? 'rgba(230, 68, 61, 0.12)' : '#fee2e2',
2042
+ errorBorder: isDark ? 'rgba(230, 68, 61, 0.35)' : '#fecaca',
2043
+ // Filled danger buttons stay on the fixed danger tier (white label, AA in
2044
+ // both themes).
2045
+ danger: '#b02b27',
2046
+ dangerHover: '#9a221f',
2047
+ warningIcon: isDark ? '#e6ad00' : '#8a5600',
2038
2048
  // Backgrounds
2039
- bg: isDark ? '#0F0F0F' : '#FFFFFF',
2040
- bgSubtle: isDark ? '#171717' : '#FAFAFA',
2041
- bgHover: isDark ? '#1A1A1A' : '#F5F5F5',
2042
- bgInput: isDark ? '#0F0F0F' : '#FFFFFF',
2049
+ bg: surface,
2050
+ bgSubtle: isDark ? 'rgba(255, 255, 255, 0.05)' : '#f8fafc',
2051
+ bgHover: isDark ? 'rgba(255, 255, 255, 0.08)' : '#f1f5f9',
2052
+ bgInput: isDark ? 'rgba(255, 255, 255, 0.04)' : '#ffffff',
2043
2053
  // Borders
2044
- border: isDark ? '#262626' : '#E5E5E5',
2045
- borderHover: isDark ? '#404040' : '#D4D4D4',
2054
+ border: isDark ? 'rgba(255, 255, 255, 0.10)' : '#e2e8f0',
2055
+ borderHover: isDark ? 'rgba(255, 255, 255, 0.18)' : '#cbd5e1',
2046
2056
  borderFocus: accent,
2057
+ chevron: isDark ? 'rgba(255, 255, 255, 0.35)' : '#cbd5e1',
2047
2058
  // Text
2048
- textPrimary: isDark ? '#FAFAFA' : '#0A0A0A',
2049
- textSecondary: isDark ? '#A3A3A3' : '#525252',
2050
- textMuted: isDark ? '#737373' : '#737373',
2051
- textOnPrimary: '#FFFFFF',
2052
- // Shadows
2059
+ textPrimary: isDark ? 'rgba(255, 255, 255, 0.92)' : '#0f172a',
2060
+ textSecondary: isDark ? 'rgba(255, 255, 255, 0.62)' : '#475569',
2061
+ textMuted: isDark ? 'rgba(255, 255, 255, 0.45)' : '#64748b',
2062
+ textOnPrimary: '#ffffff',
2063
+ // Focus — two-tone ring: inner surface gap + accent-derived outer ring.
2064
+ focusRing: `0 0 0 2px ${surface}, 0 0 0 4px ${focusRingColor}`,
2065
+ // Shadows — DS-weight: lean on hairlines, keep elevation subtle.
2053
2066
  shadowSm: isDark
2054
2067
  ? '0 1px 2px rgba(0, 0, 0, 0.4)'
2055
- : '0 1px 2px rgba(0, 0, 0, 0.04)',
2068
+ : '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
2056
2069
  shadowLg: isDark
2057
- ? '0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05)'
2058
- : '0 8px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04)',
2070
+ ? '0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.10)'
2071
+ : '0 8px 24px rgba(15, 23, 42, 0.12)',
2059
2072
  };
2060
2073
  return `
2061
2074
  /* ========================================
2062
2075
  MOTION SYSTEM — shared duration/easing tokens so every transition in
2063
- the flow is consistent. Enters decelerate (ease-out-expo), exits
2064
- accelerate, spring is reserved for the success moment.
2076
+ the flow is consistent. 120/180/280ms tiers; standard and decelerate
2077
+ curves only, never overshoot.
2065
2078
  ======================================== */
2066
2079
  :root {
2067
- --sv-dur-instant: 80ms;
2068
- --sv-dur-fast: 140ms;
2069
- --sv-dur-base: 220ms;
2070
- --sv-dur-slow: 320ms;
2071
- --sv-dur-slower: 480ms;
2080
+ --sv-dur-instant: 120ms;
2081
+ --sv-dur-fast: 120ms;
2082
+ --sv-dur-base: 180ms;
2083
+ --sv-dur-slow: 280ms;
2084
+ --sv-dur-slower: 280ms;
2072
2085
  --sv-ease-standard: cubic-bezier(0.2, 0, 0, 1);
2073
- --sv-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
2074
- --sv-ease-accelerate: cubic-bezier(0.3, 0, 1, 1);
2075
- --sv-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
2086
+ --sv-ease-out: cubic-bezier(0, 0, 0.2, 1);
2087
+ --sv-ease-accelerate: cubic-bezier(0.2, 0, 0, 1);
2088
+ --sv-ease-spring: cubic-bezier(0.2, 0, 0, 1);
2076
2089
  }
2077
2090
 
2078
2091
  /* Each mounted view enters with a calm fade + rise. Applied by the renderer
@@ -2097,7 +2110,7 @@ function getStyles(options) {
2097
2110
  .sv-overlay {
2098
2111
  position: fixed;
2099
2112
  inset: 0;
2100
- background: rgba(0, 0, 0, ${isDark ? '0.7' : '0.5'});
2113
+ background: ${isDark ? 'rgba(0, 0, 0, 0.7)' : 'rgba(15, 23, 42, 0.6)'};
2101
2114
  display: flex;
2102
2115
  align-items: center;
2103
2116
  justify-content: center;
@@ -2116,7 +2129,7 @@ function getStyles(options) {
2116
2129
 
2117
2130
  .sv-modal {
2118
2131
  background: ${tokens.bg};
2119
- border-radius: 16px;
2132
+ border-radius: 12px;
2120
2133
  box-shadow: ${tokens.shadowLg};
2121
2134
  width: 100%;
2122
2135
  max-width: 400px;
@@ -2137,7 +2150,7 @@ function getStyles(options) {
2137
2150
  padding: 14px 20px;
2138
2151
  border-bottom: 1px solid ${tokens.border};
2139
2152
  background: ${tokens.bg};
2140
- border-radius: 16px 16px 0 0;
2153
+ border-radius: 12px 12px 0 0;
2141
2154
  flex-shrink: 0;
2142
2155
  }
2143
2156
 
@@ -2175,10 +2188,10 @@ function getStyles(options) {
2175
2188
  justify-content: center;
2176
2189
  background: ${tokens.bgSubtle};
2177
2190
  border: none;
2178
- border-radius: 8px;
2191
+ border-radius: 6px;
2179
2192
  cursor: pointer;
2180
2193
  color: ${tokens.textSecondary};
2181
- transition: background 0.15s ease, color 0.15s ease;
2194
+ transition: background var(--sv-dur-fast) var(--sv-ease-standard), color var(--sv-dur-fast) var(--sv-ease-standard);
2182
2195
  }
2183
2196
 
2184
2197
  .sv-close-btn:hover {
@@ -2187,12 +2200,8 @@ function getStyles(options) {
2187
2200
  }
2188
2201
 
2189
2202
  .sv-close-btn:focus-visible {
2190
- outline: 2px solid ${tokens.borderFocus};
2191
- outline-offset: 2px;
2192
- }
2193
-
2194
- .sv-close-btn:active {
2195
- transform: scale(0.96);
2203
+ outline: none;
2204
+ box-shadow: ${tokens.focusRing};
2196
2205
  }
2197
2206
 
2198
2207
  /* ========================================
@@ -2212,10 +2221,10 @@ function getStyles(options) {
2212
2221
  .sv-title {
2213
2222
  font-size: 21px;
2214
2223
  font-weight: 600;
2215
- letter-spacing: -0.021em;
2224
+ letter-spacing: -0.02em;
2216
2225
  line-height: 1.22;
2217
2226
  margin: 0 0 7px 0;
2218
- text-align: center;
2227
+ text-align: left;
2219
2228
  color: ${tokens.textPrimary};
2220
2229
  }
2221
2230
 
@@ -2225,10 +2234,17 @@ function getStyles(options) {
2225
2234
  line-height: 1.5;
2226
2235
  color: ${tokens.textSecondary};
2227
2236
  margin: 0 0 16px 0;
2228
- text-align: center;
2237
+ text-align: left;
2229
2238
  text-wrap: balance;
2230
2239
  }
2231
2240
 
2241
+ /* Icon-led ceremony screens (passkey set-up / sign-in) are a fully
2242
+ centered composition: the headline and subtitle follow the glyph. */
2243
+ div:has(> .sv-passkey-icon) ~ .sv-title,
2244
+ div:has(> .sv-passkey-icon) ~ .sv-subtitle {
2245
+ text-align: center;
2246
+ }
2247
+
2232
2248
  .sv-subtitle strong {
2233
2249
  color: ${tokens.textPrimary};
2234
2250
  font-weight: 500;
@@ -2257,12 +2273,12 @@ function getStyles(options) {
2257
2273
  font-size: 15px;
2258
2274
  font-weight: 400;
2259
2275
  line-height: 1.4;
2260
- border: 1px solid ${tokens.borderHover};
2261
- border-radius: 10px;
2276
+ border: 1px solid ${tokens.border};
2277
+ border-radius: 8px;
2262
2278
  background: ${tokens.bgInput};
2263
2279
  color: ${tokens.textPrimary};
2264
2280
  box-sizing: border-box;
2265
- box-shadow: 0 1px 1px ${isDark ? 'rgba(0,0,0,0.3)' : 'rgba(10,10,10,0.04)'};
2281
+ box-shadow: ${tokens.shadowSm};
2266
2282
  transition: border-color var(--sv-dur-fast) var(--sv-ease-standard), box-shadow var(--sv-dur-fast) var(--sv-ease-standard);
2267
2283
  }
2268
2284
 
@@ -2292,7 +2308,7 @@ function getStyles(options) {
2292
2308
 
2293
2309
  .sv-input.sv-input-error:focus,
2294
2310
  .sv-input.sv-email-input-error:focus {
2295
- box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
2311
+ box-shadow: 0 0 0 3px ${tokens.errorLight};
2296
2312
  }
2297
2313
 
2298
2314
  /* ========================================
@@ -2311,15 +2327,15 @@ function getStyles(options) {
2311
2327
  letter-spacing: -0.006em;
2312
2328
  line-height: 1.35;
2313
2329
  border: none;
2314
- border-radius: 10px;
2330
+ border-radius: 8px;
2315
2331
  cursor: pointer;
2316
- transition: background var(--sv-dur-fast) var(--sv-ease-standard), transform var(--sv-dur-instant) var(--sv-ease-standard), box-shadow var(--sv-dur-fast) var(--sv-ease-standard);
2332
+ transition: background var(--sv-dur-fast) var(--sv-ease-standard), box-shadow var(--sv-dur-fast) var(--sv-ease-standard);
2317
2333
  box-sizing: border-box;
2318
2334
  }
2319
2335
 
2320
2336
  .sv-btn:focus-visible {
2321
- outline: 2px solid ${tokens.borderFocus};
2322
- outline-offset: 2px;
2337
+ outline: none;
2338
+ box-shadow: ${tokens.focusRing};
2323
2339
  }
2324
2340
 
2325
2341
  .sv-btn:disabled {
@@ -2327,8 +2343,9 @@ function getStyles(options) {
2327
2343
  cursor: not-allowed;
2328
2344
  }
2329
2345
 
2346
+ /* Press = visual compression via an inset shadow, never scale. */
2330
2347
  .sv-btn:active:not(:disabled) {
2331
- transform: scale(0.98);
2348
+ box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.2);
2332
2349
  }
2333
2350
 
2334
2351
  /* Primary Button */
@@ -2344,7 +2361,7 @@ function getStyles(options) {
2344
2361
  background: ${tokens.primaryHover};
2345
2362
  }
2346
2363
 
2347
- /* Secondary Button */
2364
+ /* Secondary Button — quiet: subtle fill, hairline border */
2348
2365
  .sv-btn-secondary {
2349
2366
  background: ${tokens.bgSubtle};
2350
2367
  color: ${tokens.textPrimary};
@@ -2356,25 +2373,26 @@ function getStyles(options) {
2356
2373
  border-color: ${tokens.borderHover};
2357
2374
  }
2358
2375
 
2359
- /* Method Button — a full-width row that lifts on hover with a nudging
2360
- chevron affordance (added via ::after so no DOM change is needed). */
2376
+ /* Method Button — a full-width row with a nudging chevron affordance
2377
+ (added via ::after so no DOM change is needed). The card itself stays
2378
+ planted: hover is a quiet fill + border shift, no translate. */
2361
2379
  .sv-btn-method {
2362
2380
  position: relative;
2363
2381
  background: ${tokens.bg};
2364
- border: 1px solid ${tokens.borderHover};
2365
- border-radius: 12px;
2382
+ border: 1px solid ${tokens.border};
2383
+ border-radius: 10px;
2366
2384
  color: ${tokens.textPrimary};
2367
2385
  text-align: left;
2368
2386
  padding: 15px 40px 15px 14px;
2369
2387
  margin-bottom: 9px;
2370
- /* Inset 2px on either side so the focus outline (drawn outside the
2388
+ /* Inset 2px on either side so the focus ring (drawn outside the
2371
2389
  border-box) has room to render without clipping against the
2372
2390
  dialog's container edges. width:auto pairs with this to prevent
2373
2391
  the row from forcing horizontal overflow. */
2374
2392
  margin-left: 2px;
2375
2393
  margin-right: 2px;
2376
2394
  width: calc(100% - 4px);
2377
- transition: transform var(--sv-dur-base) var(--sv-ease-out), background var(--sv-dur-fast) var(--sv-ease-standard), border-color var(--sv-dur-fast) var(--sv-ease-standard);
2395
+ transition: background var(--sv-dur-fast) var(--sv-ease-standard), border-color var(--sv-dur-fast) var(--sv-ease-standard);
2378
2396
  }
2379
2397
 
2380
2398
  .sv-btn-method::after {
@@ -2384,29 +2402,25 @@ function getStyles(options) {
2384
2402
  top: 50%;
2385
2403
  width: 8px;
2386
2404
  height: 8px;
2387
- border-right: 1.6px solid ${tokens.textMuted};
2388
- border-top: 1.6px solid ${tokens.textMuted};
2405
+ border-right: 1.6px solid ${tokens.chevron};
2406
+ border-top: 1.6px solid ${tokens.chevron};
2389
2407
  transform: translateY(-50%) rotate(45deg);
2390
2408
  transition: transform var(--sv-dur-base) var(--sv-ease-out), border-color var(--sv-dur-fast) var(--sv-ease-standard);
2391
2409
  }
2392
2410
 
2393
2411
  .sv-btn-method:hover:not(:disabled)::after {
2394
2412
  transform: translateY(-50%) translateX(3px) rotate(45deg);
2395
- border-color: ${tokens.textSecondary};
2413
+ border-color: ${tokens.primary};
2396
2414
  }
2397
2415
 
2398
- /* The shared .sv-btn focus rule sets outline-offset:2px which sits
2399
- outside the row's edges and gets clipped by the parent. Method
2400
- rows are full-width by design, so render the focus indicator
2401
- flush against the border instead. */
2402
2416
  .sv-btn-method:focus-visible {
2403
- outline-offset: 0;
2417
+ outline: none;
2418
+ box-shadow: ${tokens.focusRing};
2404
2419
  }
2405
2420
 
2406
2421
  .sv-btn-method:hover:not(:disabled) {
2407
2422
  background: ${tokens.bgSubtle};
2408
- border-color: ${tokens.border};
2409
- transform: translateY(-2px);
2423
+ border-color: ${tokens.borderHover};
2410
2424
  }
2411
2425
 
2412
2426
  .sv-btn-method:last-child {
@@ -2415,13 +2429,13 @@ function getStyles(options) {
2415
2429
 
2416
2430
  /* Error Buttons */
2417
2431
  .sv-btn-error-primary {
2418
- background: ${tokens.error};
2432
+ background: ${tokens.danger};
2419
2433
  color: ${tokens.textOnPrimary};
2420
2434
  box-shadow: ${tokens.shadowSm};
2421
2435
  }
2422
2436
 
2423
2437
  .sv-btn-error-primary:hover:not(:disabled) {
2424
- background: #B91C1C;
2438
+ background: ${tokens.dangerHover};
2425
2439
  }
2426
2440
 
2427
2441
  .sv-btn-error-secondary {
@@ -2446,26 +2460,26 @@ function getStyles(options) {
2446
2460
  width: 100%;
2447
2461
  }
2448
2462
 
2463
+ /* Bare glyph slot — no container chrome. Quiet slate stroke that takes
2464
+ the accent on row hover. */
2449
2465
  .sv-method-icon {
2450
- width: 36px;
2451
- height: 36px;
2466
+ width: 20px;
2467
+ height: 20px;
2452
2468
  flex-shrink: 0;
2453
2469
  display: flex;
2454
2470
  align-items: center;
2455
2471
  justify-content: center;
2456
- border-radius: 9px;
2457
- background: ${tokens.bgSubtle};
2458
- color: ${tokens.textSecondary};
2459
- transition: background var(--sv-dur-fast) var(--sv-ease-standard);
2472
+ color: ${tokens.textMuted};
2473
+ transition: color var(--sv-dur-fast) var(--sv-ease-standard);
2460
2474
  }
2461
2475
 
2462
2476
  .sv-btn-method:hover:not(:disabled) .sv-method-icon {
2463
- background: ${tokens.bg};
2477
+ color: ${tokens.primary};
2464
2478
  }
2465
2479
 
2466
2480
  .sv-method-icon svg {
2467
- width: 19px;
2468
- height: 19px;
2481
+ width: 20px;
2482
+ height: 20px;
2469
2483
  }
2470
2484
 
2471
2485
  .sv-method-text {
@@ -2474,13 +2488,13 @@ function getStyles(options) {
2474
2488
  }
2475
2489
 
2476
2490
  .sv-method-name {
2477
- font-weight: 500;
2478
- font-size: 14px;
2491
+ font-weight: 600;
2492
+ font-size: 15px;
2479
2493
  color: ${tokens.textPrimary};
2480
2494
  }
2481
2495
 
2482
2496
  .sv-method-description {
2483
- font-size: 12px;
2497
+ font-size: 13px;
2484
2498
  color: ${tokens.textMuted};
2485
2499
  margin-top: 1px;
2486
2500
  }
@@ -2505,12 +2519,12 @@ function getStyles(options) {
2505
2519
  letter-spacing: 0;
2506
2520
  font-variant-numeric: tabular-nums;
2507
2521
  caret-color: transparent;
2508
- border: 1px solid ${tokens.borderHover};
2509
- border-radius: 11px;
2522
+ border: 1px solid ${tokens.border};
2523
+ border-radius: 8px;
2510
2524
  background: ${tokens.bgInput};
2511
2525
  color: ${tokens.textPrimary};
2512
2526
  box-sizing: border-box;
2513
- transition: border-color var(--sv-dur-fast) var(--sv-ease-standard), box-shadow var(--sv-dur-fast) var(--sv-ease-standard), transform var(--sv-dur-fast) var(--sv-ease-spring);
2527
+ transition: border-color var(--sv-dur-fast) var(--sv-ease-standard), box-shadow var(--sv-dur-fast) var(--sv-ease-standard);
2514
2528
  }
2515
2529
 
2516
2530
  .sv-otp-digit:hover:not(:focus):not(:disabled) {
@@ -2521,7 +2535,6 @@ function getStyles(options) {
2521
2535
  outline: none;
2522
2536
  border-color: ${tokens.borderFocus};
2523
2537
  box-shadow: 0 0 0 3px ${tokens.primaryLight};
2524
- transform: translateY(-2px);
2525
2538
  }
2526
2539
 
2527
2540
  .sv-otp-digit:disabled {
@@ -2546,7 +2559,7 @@ function getStyles(options) {
2546
2559
  border: none;
2547
2560
  padding: 0;
2548
2561
  margin-bottom: 16px;
2549
- transition: color 0.15s ease;
2562
+ transition: color var(--sv-dur-fast) var(--sv-ease-standard);
2550
2563
  }
2551
2564
 
2552
2565
  .sv-back-link:hover:not(:disabled) {
@@ -2574,7 +2587,7 @@ function getStyles(options) {
2574
2587
  padding: 10px 12px;
2575
2588
  border-radius: 8px;
2576
2589
  font-size: 13px;
2577
- font-weight: 450;
2590
+ font-weight: 500;
2578
2591
  margin-bottom: 16px;
2579
2592
  }
2580
2593
 
@@ -2630,7 +2643,7 @@ function getStyles(options) {
2630
2643
  color: ${tokens.textSecondary};
2631
2644
  text-decoration: none;
2632
2645
  font-weight: 500;
2633
- transition: color 0.15s ease;
2646
+ transition: color var(--sv-dur-fast) var(--sv-ease-standard);
2634
2647
  }
2635
2648
 
2636
2649
  .sv-footer-link:hover {
@@ -2690,7 +2703,7 @@ function getStyles(options) {
2690
2703
  background: ${tokens.bgInput};
2691
2704
  color: ${tokens.textPrimary};
2692
2705
  box-sizing: border-box;
2693
- transition: border-color 0.15s ease, box-shadow 0.15s ease;
2706
+ transition: border-color var(--sv-dur-fast) var(--sv-ease-standard), box-shadow var(--sv-dur-fast) var(--sv-ease-standard);
2694
2707
  }
2695
2708
 
2696
2709
  .sv-email-input:hover:not(:focus):not(:disabled) {
@@ -2712,7 +2725,7 @@ function getStyles(options) {
2712
2725
  }
2713
2726
 
2714
2727
  .sv-email-input-error:focus {
2715
- box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
2728
+ box-shadow: 0 0 0 3px ${tokens.errorLight};
2716
2729
  }
2717
2730
 
2718
2731
  /* ========================================
@@ -2767,14 +2780,14 @@ function getStyles(options) {
2767
2780
  .sv-error-code-label {
2768
2781
  font-size: 10px;
2769
2782
  font-weight: 600;
2770
- color: ${isDark ? '#F87171' : '#991B1B'};
2783
+ color: ${isDark ? '#e6443d' : '#991b1b'};
2771
2784
  text-transform: uppercase;
2772
2785
  letter-spacing: 0.05em;
2773
2786
  }
2774
2787
 
2775
2788
  .sv-error-code-value {
2776
2789
  font-size: 11px;
2777
- font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, 'Cascadia Mono', monospace;
2790
+ font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, 'Cascadia Mono', monospace;
2778
2791
  color: ${tokens.error};
2779
2792
  font-weight: 500;
2780
2793
  }
@@ -2871,10 +2884,10 @@ function getStyles(options) {
2871
2884
  justify-content: center;
2872
2885
  background: transparent;
2873
2886
  border: none;
2874
- border-radius: 8px;
2887
+ border-radius: 6px;
2875
2888
  cursor: pointer;
2876
2889
  color: ${tokens.textMuted};
2877
- transition: background 0.15s ease, color 0.15s ease;
2890
+ transition: background var(--sv-dur-fast) var(--sv-ease-standard), color var(--sv-dur-fast) var(--sv-ease-standard);
2878
2891
  z-index: 1;
2879
2892
  }
2880
2893
 
@@ -2884,12 +2897,8 @@ function getStyles(options) {
2884
2897
  }
2885
2898
 
2886
2899
  .sv-floating-close:focus-visible {
2887
- outline: 2px solid ${tokens.borderFocus};
2888
- outline-offset: 2px;
2889
- }
2890
-
2891
- .sv-floating-close:active {
2892
- transform: scale(0.96);
2900
+ outline: none;
2901
+ box-shadow: ${tokens.focusRing};
2893
2902
  }
2894
2903
 
2895
2904
  /* ========================================
@@ -2949,7 +2958,7 @@ function getStyles(options) {
2949
2958
 
2950
2959
  .sv-not-activated-title {
2951
2960
  font-size: 22px;
2952
- font-weight: 700;
2961
+ font-weight: 600;
2953
2962
  letter-spacing: -0.02em;
2954
2963
  line-height: 1.2;
2955
2964
  margin: 0 0 10px 0;
@@ -2971,7 +2980,7 @@ function getStyles(options) {
2971
2980
  gap: 4px;
2972
2981
  padding: 14px 16px;
2973
2982
  border: 1px solid ${tokens.border};
2974
- border-radius: 12px;
2983
+ border-radius: 10px;
2975
2984
  background: ${tokens.bgSubtle};
2976
2985
  text-align: left;
2977
2986
  margin-bottom: 22px;
@@ -3019,7 +3028,7 @@ function getStyles(options) {
3019
3028
  font-size: 13px;
3020
3029
  font-weight: 500;
3021
3030
  color: ${tokens.textMuted};
3022
- transition: color 0.15s ease;
3031
+ transition: color var(--sv-dur-fast) var(--sv-ease-standard);
3023
3032
  align-self: center;
3024
3033
  }
3025
3034
 
@@ -3028,8 +3037,8 @@ function getStyles(options) {
3028
3037
  }
3029
3038
 
3030
3039
  .sv-not-activated-dismiss:focus-visible {
3031
- outline: 2px solid ${tokens.borderFocus};
3032
- outline-offset: 2px;
3040
+ outline: none;
3041
+ box-shadow: ${tokens.focusRing};
3033
3042
  border-radius: 6px;
3034
3043
  }
3035
3044
 
@@ -3074,7 +3083,7 @@ function getStyles(options) {
3074
3083
  border: none;
3075
3084
  padding: 12px 0 0 0;
3076
3085
  margin-top: 8px;
3077
- transition: color 0.15s ease;
3086
+ transition: color var(--sv-dur-fast) var(--sv-ease-standard);
3078
3087
  }
3079
3088
 
3080
3089
  .sv-fallback-link:hover {
@@ -3135,7 +3144,7 @@ function getStyles(options) {
3135
3144
  background: none;
3136
3145
  border: none;
3137
3146
  padding: 12px 0 0 0;
3138
- transition: color 0.15s ease;
3147
+ transition: color var(--sv-dur-fast) var(--sv-ease-standard);
3139
3148
  }
3140
3149
 
3141
3150
  .sv-skip-link:hover {
@@ -3153,14 +3162,11 @@ function getStyles(options) {
3153
3162
  margin-bottom: 16px;
3154
3163
  }
3155
3164
 
3165
+ /* Bare glyph — no tinted circle container. */
3156
3166
  .sv-sparklink-icon {
3157
- width: 56px;
3158
- height: 56px;
3159
- color: ${tokens.primary};
3160
- background: ${tokens.primaryLight};
3161
- padding: 14px;
3162
- border-radius: 50%;
3163
- box-sizing: content-box;
3167
+ width: 48px;
3168
+ height: 48px;
3169
+ color: ${tokens.textSecondary};
3164
3170
  }
3165
3171
 
3166
3172
  .sv-sparklink-waiting {
@@ -3186,7 +3192,7 @@ function getStyles(options) {
3186
3192
 
3187
3193
  .sv-sparklink-waiting-text {
3188
3194
  font-size: 13px;
3189
- font-weight: 450;
3195
+ font-weight: 500;
3190
3196
  color: ${tokens.textSecondary};
3191
3197
  }
3192
3198
 
@@ -3201,9 +3207,10 @@ function getStyles(options) {
3201
3207
  }
3202
3208
 
3203
3209
  .sv-sparklink-countdown-time {
3204
- font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, 'Cascadia Mono', monospace;
3210
+ font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Monaco, 'Cascadia Mono', monospace;
3205
3211
  font-weight: 600;
3206
3212
  font-size: 14px;
3213
+ font-variant-numeric: tabular-nums;
3207
3214
  color: ${tokens.textPrimary};
3208
3215
  min-width: 40px;
3209
3216
  }
@@ -3398,7 +3405,7 @@ function getStyles(options) {
3398
3405
  margin-bottom: 0;
3399
3406
  border-width: 0;
3400
3407
  overflow: hidden;
3401
- transition: opacity 0.25s ease;
3408
+ transition: opacity var(--sv-dur-slow) var(--sv-ease-standard);
3402
3409
  }
3403
3410
 
3404
3411
  .sv-bridge-alert.sv-shown {
@@ -3415,7 +3422,7 @@ function getStyles(options) {
3415
3422
  width: 17px;
3416
3423
  height: 17px;
3417
3424
  margin-top: 1px;
3418
- color: #d97706;
3425
+ color: ${tokens.warningIcon};
3419
3426
  }
3420
3427
 
3421
3428
  /* Text stacked over the action, so the message keeps the full width and
@@ -3446,7 +3453,7 @@ function getStyles(options) {
3446
3453
  }
3447
3454
 
3448
3455
  .sv-bridge-retry:hover { color: ${tokens.primaryHover}; }
3449
- .sv-bridge-retry:focus-visible { outline: 2px solid ${tokens.borderFocus}; outline-offset: 2px; border-radius: 4px; }
3456
+ .sv-bridge-retry:focus-visible { outline: none; box-shadow: ${tokens.focusRing}; border-radius: 4px; }
3450
3457
 
3451
3458
  @media (prefers-reduced-motion: reduce) {
3452
3459
  .sv-bridge-dots span { animation: none; opacity: 0.5; }
@@ -3499,8 +3506,9 @@ function getStyles(options) {
3499
3506
  /**
3500
3507
  * SVG Icon Factory
3501
3508
  *
3502
- * Enterprise-grade icons with clean, minimal design.
3503
- * Uses proper DOM element creation for security.
3509
+ * Bare outline glyphs per the SparkVault design system: stroke `currentColor`
3510
+ * so the stylesheet drives color, no tinted container backgrounds, round
3511
+ * caps/joins. Uses proper DOM element creation for security.
3504
3512
  */
3505
3513
  function createSvgElement(viewBox, width = 16, height = 16) {
3506
3514
  const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
@@ -3568,88 +3576,63 @@ function createCloseIcon() {
3568
3576
  return svg;
3569
3577
  }
3570
3578
  /**
3571
- * Passkey icon - simple key design
3579
+ * Passkey icon - bare outline key design
3572
3580
  */
3573
3581
  function createPasskeyIcon() {
3574
3582
  const svg = createSvgElement('0 0 56 56', 56, 56);
3575
3583
  svg.classList.add('sv-passkey-icon');
3576
- // Circle background
3577
- svg.appendChild(createCircle(28, 28, 26, {
3578
- fill: '#EEF2FF',
3579
- stroke: '#E0E7FF',
3580
- 'stroke-width': '1',
3581
- }));
3582
- // Key icon - centered at 28,28
3584
+ // Key glyph optically centered in the 56px box (footprint unchanged)
3583
3585
  const group = document.createElementNS('http://www.w3.org/2000/svg', 'g');
3584
- group.setAttribute('transform', 'translate(28, 28)');
3586
+ group.setAttribute('transform', 'translate(29.5, 26.5)');
3585
3587
  const strokeAttrs = {
3586
- stroke: '#4F46E5',
3587
- 'stroke-width': '2.5',
3588
+ stroke: 'currentColor',
3589
+ 'stroke-width': '3',
3588
3590
  'stroke-linecap': 'round',
3589
3591
  'stroke-linejoin': 'round',
3590
3592
  fill: 'none',
3591
3593
  };
3592
3594
  // Key head (circle)
3593
- group.appendChild(createCircle(-6, -6, 6, strokeAttrs));
3595
+ group.appendChild(createCircle(-9.5, -9.5, 9.5, strokeAttrs));
3594
3596
  // Key shaft
3595
- group.appendChild(createPath('M-1.5 -1.5L10 10', strokeAttrs));
3597
+ group.appendChild(createPath('M-2.8 -2.8L16 16', strokeAttrs));
3596
3598
  // Key teeth
3597
- group.appendChild(createPath('M6 6L6 10', strokeAttrs));
3598
- group.appendChild(createPath('M10 10L10 14', strokeAttrs));
3599
+ group.appendChild(createPath('M9.5 9.5L9.5 15.5', strokeAttrs));
3600
+ group.appendChild(createPath('M16 16L16 22', strokeAttrs));
3599
3601
  svg.appendChild(group);
3600
3602
  return svg;
3601
3603
  }
3602
3604
  /**
3603
- * Error icon - clean triangle alert
3605
+ * Bare outline alert triangle shared by the error and expired icons.
3606
+ * Color comes from `currentColor` via the class-specific stylesheet rules.
3604
3607
  */
3605
- function createErrorIcon() {
3608
+ function createAlertTriangleIcon(className) {
3606
3609
  const svg = createSvgElement('0 0 48 48', 48, 48);
3607
- svg.classList.add('sv-error-icon');
3608
- // Circle background
3609
- svg.appendChild(createCircle(24, 24, 22, {
3610
- fill: '#FEF2F2',
3611
- stroke: '#FECACA',
3612
- 'stroke-width': '1',
3613
- }));
3614
- // Alert triangle
3615
- const group = document.createElementNS('http://www.w3.org/2000/svg', 'g');
3616
- group.setAttribute('transform', 'translate(10, 12)');
3617
- group.appendChild(createPath('M14 4L2 24h24L14 4z', { fill: '#DC2626' }));
3618
- // Exclamation
3619
- group.appendChild(createPath('M14 10v5', {
3620
- stroke: '#FFFFFF',
3621
- 'stroke-width': '2',
3610
+ svg.classList.add(className);
3611
+ const strokeAttrs = {
3612
+ stroke: 'currentColor',
3613
+ 'stroke-width': '2.5',
3622
3614
  'stroke-linecap': 'round',
3623
- }));
3624
- group.appendChild(createCircle(14, 19, 1, { fill: '#FFFFFF' }));
3625
- svg.appendChild(group);
3615
+ 'stroke-linejoin': 'round',
3616
+ fill: 'none',
3617
+ };
3618
+ // Triangle outline
3619
+ svg.appendChild(createPath('M24 9L5.5 39h37L24 9z', strokeAttrs));
3620
+ // Exclamation
3621
+ svg.appendChild(createPath('M24 20v8', strokeAttrs));
3622
+ svg.appendChild(createCircle(24, 33.5, 1.5, { fill: 'currentColor' }));
3626
3623
  return svg;
3627
3624
  }
3628
3625
  /**
3629
- * Expired icon - grayscale triangle alert for expired states
3626
+ * Error icon - alert triangle for error states
3627
+ */
3628
+ function createErrorIcon() {
3629
+ return createAlertTriangleIcon('sv-error-icon');
3630
+ }
3631
+ /**
3632
+ * Expired icon - alert triangle for expired states
3630
3633
  */
3631
3634
  function createExpiredIcon() {
3632
- const svg = createSvgElement('0 0 48 48', 48, 48);
3633
- svg.classList.add('sv-expired-icon');
3634
- // Circle background - muted gray
3635
- svg.appendChild(createCircle(24, 24, 22, {
3636
- fill: '#F5F5F5',
3637
- stroke: '#E5E5E5',
3638
- 'stroke-width': '1',
3639
- }));
3640
- // Alert triangle - gray
3641
- const group = document.createElementNS('http://www.w3.org/2000/svg', 'g');
3642
- group.setAttribute('transform', 'translate(10, 12)');
3643
- group.appendChild(createPath('M14 4L2 24h24L14 4z', { fill: '#737373' }));
3644
- // Exclamation
3645
- group.appendChild(createPath('M14 10v5', {
3646
- stroke: '#FFFFFF',
3647
- 'stroke-width': '2',
3648
- 'stroke-linecap': 'round',
3649
- }));
3650
- group.appendChild(createCircle(14, 19, 1, { fill: '#FFFFFF' }));
3651
- svg.appendChild(group);
3652
- return svg;
3635
+ return createAlertTriangleIcon('sv-expired-icon');
3653
3636
  }
3654
3637
  /**
3655
3638
  * Method icons