/* F2E customer dashboard. Same tokens as the marketing site; scoped under .f2ea. */
.f2ea {
  --paper: #f3f2ee; --paper-2: #ebeae5; --card: #fbfbf9; --ink: #161615; --ink-2: #3d3c39; --muted: #6b6a64; --line: #d9d8d1;
  --accent: #b8134a; --accent-deep: #92003b; --soft: #fbe9ef; --ok: #1f7a4d; --r: 10px;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); font-size: 16px; line-height: 1.55;
  max-width: 980px; margin: 0 auto; padding: 24px 16px 64px; box-sizing: border-box;
}
.f2ea *, .f2ea *::before, .f2ea *::after { box-sizing: border-box; }
.f2ea h2, .f2ea h3, .f2ea p { margin: 0; }
.f2ea h2 { font-size: 30px; letter-spacing: -.03em; font-weight: 600; line-height: 1.1; }
.f2ea h3 { font-size: 19px; letter-spacing: -.02em; font-weight: 600; }
.f2ea-muted { color: var(--muted); font-size: 14px; }
.f2ea-loading { padding: 40px; text-align: center; color: var(--muted); }

.f2ea-card { background: var(--card); border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -32px rgba(22, 22, 21, .35); padding: 24px; }
.f2ea-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

.f2ea-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--accent); color: #fff !important; font: 500 15px/1 inherit; font-family: inherit; text-decoration: none !important; cursor: pointer; white-space: nowrap; transition: background-color .2s, transform .15s; }
.f2ea-btn:hover { background: var(--accent-deep); }
.f2ea-btn:active { transform: scale(.98); }
.f2ea-btn[disabled] { background: #c9c8c1; cursor: not-allowed; }
.f2ea-btn em { font-style: normal; font-size: 12.5px; padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.f2ea-btn-line { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
.f2ea-btn-line:hover { background: var(--paper-2); }
.f2ea-link { background: none; border: 0; padding: 0; color: var(--ink-2); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.f2ea-link:hover { color: var(--accent); }

/* Header */
.f2ea-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.f2ea-head-r { display: flex; align-items: center; gap: 16px; }
.f2ea-credits { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--soft); color: var(--accent-deep); font-size: 14px; }
.f2ea-credits b { font-size: 16px; }
.f2ea-credits.is-empty { background: var(--paper-2); color: var(--muted); }

/* New conversion */
.f2ea-new { display: grid; gap: 18px; }
.f2ea-tabs { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); justify-self: start; }
.f2ea-tabs button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 8px 14px; border-radius: 7px; font: 500 14.5px inherit; font-family: inherit; color: var(--muted); cursor: pointer; }
.f2ea-tabs button.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(22, 22, 21, .12), 0 0 0 1px var(--line); }
.f2ea-field { display: grid; gap: 7px; }
.f2ea-field > span { font-size: 14px; font-weight: 500; }
.f2ea-field small { color: var(--muted); font-size: 13px; }
.f2ea-field input[type=url], .f2ea-field input[type=text] { width: 100%; height: 46px; border-radius: 9px; border: 1px solid #c4c3bc; background: #fff; padding: 0 14px; font: 15px inherit; font-family: inherit; color: var(--ink); }
.f2ea-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.f2ea-drop { display: flex; align-items: center; gap: 16px; min-height: 120px; padding: 18px; border-radius: 12px; border: 2px dashed #c9c8c1; background: var(--paper); cursor: pointer; transition: border-color .2s, background-color .2s; }
.f2ea-drop:hover, .f2ea-drop.is-over, .f2ea-drop:focus-visible { border-color: var(--accent); background: var(--soft); outline: none; }
.f2ea-drop b { display: block; font-weight: 600; }
.f2ea-drop small { display: block; }
.f2ea-drop img { width: 84px; height: 84px; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.f2ea-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f2ea-seg { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.f2ea-seg button { flex: 1; border: 0; background: none; padding: 9px 12px; border-radius: 7px; font: 500 14.5px inherit; font-family: inherit; color: var(--muted); cursor: pointer; white-space: nowrap; }
.f2ea-seg button.is-on { background: var(--accent); color: #fff; }
.f2ea-error { padding: 10px 14px; border-radius: 9px; background: #fde8ec; color: #8c0f37; font-size: 14.5px; }
.f2ea-upbar { height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.f2ea-upbar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

/* Jobs */
.f2ea .f2ea-sub { margin: 36px 0 14px; }
.f2ea-jobs { display: grid; gap: 12px; }
.f2ea-job { background: var(--card); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); padding: 16px; display: grid; gap: 14px; }
.f2ea-job-head { display: flex; align-items: center; gap: 14px; }
.f2ea-thumb { width: 56px; height: 56px; flex: none; border-radius: 8px; object-fit: cover; object-position: top; background: var(--paper-2); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; }
.f2ea-job-t { flex: 1; min-width: 0; }
.f2ea-job-t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f2ea-job-t small { color: var(--muted); font-size: 13px; }
.f2ea-pill { flex: none; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.f2ea-pill.is-running { background: var(--soft); color: var(--accent-deep); }
.f2ea-pill.is-done { background: #e4f3ea; color: var(--ok); }
.f2ea-pill.is-failed { background: #fde8ec; color: #8c0f37; }
.f2ea-bar { height: 8px; border-radius: 8px; background: var(--paper-2); overflow: hidden; }
.f2ea-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--accent), #e2457a); transition: width .6s cubic-bezier(.16, 1, .3, 1); position: relative; overflow: hidden; }
.f2ea-job.is-running .f2ea-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: f2eaShine 1.4s infinite; }
@keyframes f2eaShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.f2ea-prog { display: grid; gap: 8px; }
.f2ea-prog-t { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.f2ea-done { display: grid; gap: 14px; }
.f2ea-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.f2ea-score b { font-size: 32px; letter-spacing: -.04em; color: var(--ok); line-height: 1; }
.f2ea-score span { color: var(--muted); font-size: 14px; }
.f2ea-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.f2ea-actions .f2ea-btn { height: 40px; font-size: 14.5px; }
.f2ea-how summary { cursor: pointer; font-size: 14px; color: var(--ink-2); }
.f2ea-how ol { margin: 10px 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.f2ea-fail { color: #8c0f37; font-size: 14.5px; }
.f2ea-empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 24px; }
.f2ea-gate { padding-top: 40px; }
.f2ea-gate .f2ea-card { display: grid; gap: 14px; justify-items: start; padding: 36px; }

/* Icons: small inline SVG masks so they follow the text color. */
.f2ea-ic { display: inline-block; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.f2ea-ic-figma { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 2h4v6H8a3 3 0 010-6zm4 0h4a3 3 0 010 6h-4zM8 8h4v6H8a3 3 0 010-6zm8 0a3 3 0 110 6 3 3 0 010-6zM8 14h4v3a3 3 0 11-4-3z'/%3E%3C/svg%3E"); }
.f2ea-ic-image { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a1 1 0 011 1v14a1 1 0 01-1 1H4a1 1 0 01-1-1V5a1 1 0 011-1zm1 13h14l-4.5-6-3.5 4.5-2.5-3z'/%3E%3C/svg%3E"); }
.f2ea-ic-upload { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 15V6.8L8.4 9.4 7 8l5-5 5 5-1.4 1.4L13 6.8V15zm-7 3h16v2H4z'/%3E%3C/svg%3E"); width: 28px; height: 28px; color: var(--accent); }
.f2ea-ic-download { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 3v8.2l2.6-2.6L17 10l-5 5-5-5 1.4-1.4L11 11.2V3zm-9 15h16v2H4z'/%3E%3C/svg%3E"); }
.f2ea-ic-report { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h8v16H3zm10 0h8v16h-8zM5 7v2h4V7zm10 0v2h4V7z'/%3E%3C/svg%3E"); }
.f2ea-ic-eye { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5c5 0 9 4.5 10 7-1 2.5-5 7-10 7S3 14.5 2 12c1-2.5 5-7 10-7zm0 3a4 4 0 100 8 4 4 0 000-8z'/%3E%3C/svg%3E"); }
.f2ea-ic-coin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3C/svg%3E"); width: 10px; height: 10px; }
.f2ea-ic-spark { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 7.6L22 12l-7.6 2.4L12 22l-2.4-7.6L2 12l7.6-2.4z'/%3E%3C/svg%3E"); width: 30px; height: 30px; color: var(--accent); }

@media (max-width: 640px) {
  .f2ea-2 { grid-template-columns: 1fr; }
  .f2ea h2 { font-size: 25px; }
  .f2ea-card { padding: 18px; }
  .f2ea-drop { flex-direction: column; text-align: center; }
  .f2ea-pill { display: none; }
  .f2ea-actions .f2ea-btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .f2ea-job.is-running .f2ea-bar i::after { animation: none; }
}

/* Page shell when the dashboard sits on a blank (canvas) page */
body:has(.f2ea) { background: #f3f2ee; margin: 0; }
.f2ea-bar-top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1080px; margin: 12px auto 0; padding: 0 16px 0 18px; height: 58px; border-radius: 14px; background: rgba(251, 251, 249, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 0 0 1px rgba(22, 22, 21, .08), 0 10px 30px -18px rgba(22, 22, 21, .3); font-family: "Geist", ui-sans-serif, system-ui, sans-serif; }
.f2ea-logo { display: flex; align-items: center; gap: 9px; color: #161615; text-decoration: none; }
.f2ea-logo b { font-size: 18px; letter-spacing: -.03em; }
.f2ea-logo span { font-size: 13px; color: #6b6a64; padding-left: 9px; border-left: 1px solid #d9d8d1; }
.f2ea-bar-top nav { display: flex; gap: 18px; font-size: 14.5px; }
.f2ea-bar-top nav a { color: #3d3c39; text-decoration: none; }
.f2ea-bar-top nav a:hover { color: #b8134a; }
@media (max-width: 640px) { .f2ea-bar-top { margin: 8px 8px 0; } .f2ea-logo span { display: none; } }

/* Credits, packs, previews */
.f2ea-sm { height: 36px !important; padding: 0 14px !important; font-size: 14px !important; }
.f2ea-head { flex-wrap: wrap; }
.f2ea-buy { flex-basis: 100%; margin-top: 8px; padding: 22px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -32px rgba(22, 22, 21, .35); display: grid; gap: 16px; }
.f2ea-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.f2ea-pack { position: relative; display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.f2ea-pack.is-best { box-shadow: inset 0 0 0 2px var(--accent); background: var(--soft); }
.f2ea-pack b { font-size: 16px; }
.f2ea-price { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.f2ea-price small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.f2ea-tag { position: absolute; top: -10px; right: 12px; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.f2ea-btn.is-off { background: var(--paper-2); color: var(--muted) !important; cursor: default; }
.f2ea-pill.is-preview { background: #fff4d6; color: #7a5300; }

/* Sign-in / sign-up */
.f2ea-auth { max-width: 1000px; padding-top: 48px; }
.f2ea-auth-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: center; }
.f2ea-auth .f2ea-card { padding: 34px; display: grid; gap: 14px; }
.f2ea-form { display: grid; gap: 16px; margin-top: 6px; }
.f2ea-form input[type=email], .f2ea-form input[type=password], .f2ea-form input[type=text] { width: 100%; height: 48px; border-radius: 9px; border: 1px solid #c4c3bc; background: #fff; padding: 0 14px; font: 15px inherit; font-family: inherit; color: var(--ink); }
.f2ea-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.f2ea-wide { width: 100%; justify-content: center; height: 50px; }
.f2ea-between { justify-content: space-between; }
.f2ea-check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.f2ea-switch { font-size: 14.5px; color: var(--muted); }
.f2ea-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f2ea-auth-side { padding: 28px; border-radius: 14px; background: #161615; color: #f3f2ee; display: grid; gap: 18px; }
.f2ea-quote { font-size: 21px; line-height: 1.35; letter-spacing: -.02em; }
.f2ea-auth-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; color: #c9c8c0; }
.f2ea-auth-side li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; }
@media (max-width: 760px) {
  .f2ea-packs, .f2ea-auth-grid { grid-template-columns: 1fr; }
  .f2ea-auth-side { display: none; }
  .f2ea-auth .f2ea-card { padding: 22px; }
}

/* .fig frame picker */
.f2ea-sub { margin-top: 6px; }
.f2ea-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; max-height: 260px; overflow: auto; padding: 2px; }
.f2ea-frames button { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 0; border-radius: 9px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font: inherit; color: var(--ink); cursor: pointer; transition: box-shadow .15s, background-color .15s; }
.f2ea-frames button:hover { box-shadow: inset 0 0 0 1px #c3c2ba; }
.f2ea-frames button.is-on { background: var(--soft); box-shadow: inset 0 0 0 2px var(--accent); }
.f2ea-frames b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f2ea-frames small { color: var(--muted); }
.f2ea-figwrap { position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); max-width: 100%; background: #fff; }
.f2ea-figprev { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
