/* Email signature GIF maker (/emailgif/) and the team member page
   (/emailgif/t/<code>). Builds on platform-page.css tokens. */
  /* Maker: editor on the left, the email as it will look on the right.
     Inputs keep a hairline border; buttons follow the soft-fill rule. */
  .mode-tabs { position: relative; display: flex; gap: 6px; width: 100%; margin: 0; padding: 5px; border-radius: 999px; background: #0d0d0d; }
  .mode-tabs button { flex: 1; justify-content: center; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 15px; font-weight: 600; border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer; background: transparent; color: var(--text-dim); transition: background .15s, color .15s; }
  .mode-tabs button:hover { color: var(--text); }
  .mode-tabs button[aria-selected="true"] { background: rgba(90,234,155,0.16); color: var(--accent); }
  .mode-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .mode-tabs svg { width: 18px; height: 18px; flex: none; }
  .mode-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
  @media (max-width: 420px) { .mode-tabs button { font-size: 14px; padding: 10px 14px; gap: 6px; } }
  .maker { max-width: 1080px; margin: 40px auto 0; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; text-align: left; align-items: start; position: relative; }
  .maker [hidden] { display: none !important; }
  .pane { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
  .stage { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
  .sec-title { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); margin: 0; }
  .sec-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .count { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-dim); min-width: 0; }
  .maker input[type="text"], .maker input[type="url"], .maker input[type="email"], .maker input[type="number"], .maker textarea, .maker select {
    font-family: inherit; font-size: 15px; color: var(--text); background: #0d0d0d; border: 1px solid var(--line);
    border-radius: 10px; padding: 9px 10px; width: 100%; min-width: 0; color-scheme: dark; text-transform: none; letter-spacing: 0; font-weight: 400;
  }
  /* Own arrow, set in from the edge, instead of the browser's. */
  .maker select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px 14px; text-overflow: ellipsis; }
  .maker textarea { resize: vertical; min-height: 54px; line-height: 1.35; }
  .maker input[type="color"] { width: 100%; height: 41px; border: 1px solid var(--line); border-radius: 10px; background: #0d0d0d; padding: 4px; cursor: pointer; }
  .maker input:focus-visible, .maker textarea:focus-visible, .maker select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; }
  .check input { accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
  .hint { font-size: 13px; color: var(--text-faint); margin: 0; line-height: 1.5; }

  .slides { display: flex; flex-direction: column; gap: 10px; }
  .slide { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: 14px; background: #0d0d0d; }
  .thumb { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; cursor: pointer; background: #1a1a1a; }
  .thumb canvas { width: 100%; height: 100%; display: block; }
  .thumb span { position: absolute; inset: auto 0 0 0; font-size: 10px; font-weight: 600; text-align: center; padding: 3px 0; background: rgba(0,0,0,.6); color: #fff; }
  /* Step 1 edits the card; step 2 (.done) shows the result and setup. */
  .maker:not(.done) .after-make { display: none !important; }
  .maker.done { grid-template-columns: minmax(0, 680px); justify-content: center; }
  .maker.done #editor, .maker.done .mode-tabs, .maker.done #modeNote { display: none !important; }
  .done-head { display: flex; }
  .done-head .btn svg { width: 16px; height: 16px; }
  .make-end { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
  .make-btn { width: 100%; justify-content: center; font-size: 16px; padding: 15px 20px; }
  .add-slide { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font-family: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 14px; padding: 14px; cursor: pointer; background: rgba(90,234,155,0.1); color: var(--accent); transition: background .15s; }
  .add-slide:hover { background: rgba(90,234,155,0.18); }
  .add-slide:disabled { opacity: .4; cursor: default; background: rgba(90,234,155,0.1); }
  .add-slide:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .add-slide svg { width: 18px; height: 18px; padding: 3px; border-radius: 999px; background: rgba(90,234,155,0.18); box-sizing: content-box; }
  .thumb.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-dim); text-align: center; transition: background .15s, color .15s; }
  .thumb.empty:hover { background: #222; color: var(--accent); }
  .thumb.empty svg { width: 24px; height: 24px; }
  .thumb.empty small { font-size: 9.5px; font-weight: 600; line-height: 1.15; padding: 0 5px; }
  .thumb input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
  .thumb:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
  .slide-fields { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .slide-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
  .tools { display: flex; gap: 2px; }
  .mini { font-family: inherit; font-size: 12px; font-weight: 600; border: 0; border-radius: 999px; padding: 3px 9px; cursor: pointer; background: transparent; color: var(--text-dim); }
  .mini:hover { background: rgba(255,255,255,0.06); color: var(--text); }
  .mini:disabled { opacity: .3; cursor: default; background: transparent; }
  .mini:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
  .btn-sm { font-size: 14px; padding: 10px 20px; }
  .btn:disabled { opacity: .45; cursor: default; }

  /* The email, drawn the way a mail app shows it. */
  .mail { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
  .mail-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface); font-size: 12px; color: var(--text-faint); border-bottom: 1px solid var(--line); }
  .mail-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.12); }
  .mail-body { padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 14px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.5; }
  .mail-body.light { background: #fff; color: #202124; }
  .mail-body.dark { background: #1f1f1f; color: #e8eaed; }
  .mail-subject { font-size: 20px; }
  .mail-from { display: flex; gap: 10px; align-items: center; font-size: 13px; }
  .mail-avatar { width: 34px; height: 34px; border-radius: 50%; background: #c9d3e6; color: #24324e; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
  .mail-from small { display: block; opacity: .6; font-size: 12px; }
  .sig-name { font-size: 16px; }
  .sig-role { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .55; }
  .sig-card { display: block; margin-top: 10px; max-width: 100%; }
  .sig-card canvas, .sig-card img { display: block; max-width: 100%; height: auto; }
  .sig-credit { font-size: 11px; margin-top: 6px; }
  .sig-credit a { color: #80868b; text-decoration: none; }

  .export { gap: 12px; }
  .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
  .meta { font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
  .meta.ok { color: var(--accent); }
  .meta.warn { color: #f5b860; }
  .bar { height: 4px; border-radius: 4px; background: #0d0d0d; overflow: hidden; }
  .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s; }
  .hosted { display: flex; gap: 8px; align-items: center; background: #0d0d0d; border-radius: 10px; padding: 8px 10px; font-size: 13px; min-width: 0; }
  .hosted code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
  .paid-box { display: flex; flex-direction: column; gap: 10px; background: #0d0d0d; border-radius: 14px; padding: 14px; }
  .paid-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .paid-row input { flex: 1 1 200px; }

  /* Paste guide: one tab per mail app. */
  .apps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .apps button { display: flex; flex-direction: column; align-items: center; gap: 7px; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; border: 0; border-radius: 12px; padding: 12px 4px 10px; cursor: pointer; background: #0d0d0d; color: var(--text-dim); transition: background .15s, color .15s; }
  .apps button:hover { background: #151515; color: var(--text); }
  .apps button[aria-selected="true"] { background: rgba(90,234,155,0.12); color: var(--accent); }
  .apps button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .apps .app-ico { width: 30px; height: 30px; display: block; }
  .guide .btn .app-ico { width: 18px; height: 18px; }
  .team-btn { align-self: flex-start; }
  .team-btn svg { width: 17px; height: 17px; }
  .team-btn svg:last-child { width: 14px; height: 14px; margin-left: -2px; }
  .guide ol { margin: 0; padding-left: 20px; color: var(--text-dim); font-size: 14px; line-height: 1.6; }
  .guide li { margin-bottom: 4px; }
  .guide strong { color: var(--text); font-weight: 600; }
  .guide-msg { font-size: 14px; line-height: 1.5; border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
  .guide-msg { background: #0d0d0d; color: var(--text-dim); }
  .guide-msg strong { color: var(--text); }
  .guide-msg.ok { background: rgba(90,234,155,0.10); color: var(--text-dim); }
  .guide-msg.ok strong { color: var(--accent); }
  .guide-msg.warn { background: rgba(255,179,71,0.10); color: var(--text-dim); }
  .guide .note { font-size: 13px; color: var(--text-faint); margin: 8px 0 0; }
  .locked { opacity: .45; pointer-events: none; }

  .prose { max-width: 680px; margin: 28px auto 0; color: var(--text-dim); font-size: 16px; line-height: 1.7; }
  .prose ol, .prose ul { padding-left: 22px; }
  .prose li { margin-bottom: 8px; }
  .prose strong { color: var(--text); font-weight: 600; }
  .prose a, .faq a { color: var(--accent); }

  @media (max-width: 900px) {
    .maker { grid-template-columns: minmax(0, 1fr); }
    .stage { position: static; order: -1; }
  }
  @media (max-width: 600px) {
    .pane { padding: 14px 12px; }
    .grid3 { grid-template-columns: 1fr 1fr; }
    .mail-body { padding: 16px 14px 20px; }
  }
  @media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }

  /* Team signature */
  .team-ready { display: flex; flex-direction: column; gap: 8px; }
  .team-ready .field { margin-top: 4px; }
  .vt-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .vt-row select { flex: 1 1 160px; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* Animation picker: a dropdown whose options play a small preview of
     the card in that style (only while open). */
  .style-pick { position: relative; }
  .style-btn { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; font-family: inherit; color: var(--text); background: #0d0d0d; border: 0; border-radius: 10px; padding: 11px 12px; cursor: pointer; }
  .style-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .style-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
  .style-text strong { font-size: 15px; font-weight: 600; }
  .style-text small { font-size: 12.5px; color: var(--text-dim); }
  .style-chev { width: 14px; height: 14px; flex: none; margin-right: 2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 14px 14px; transition: transform .15s; }
  .style-btn[aria-expanded="true"] .style-chev { transform: rotate(180deg); }
  .style-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 24px 48px -12px rgba(0,0,0,0.7); }
  .style-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; width: 100%; text-align: left; font-family: inherit; color: var(--text); background: transparent; border: 0; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
  .style-opt:hover, .style-opt:focus-visible { background: rgba(255,255,255,0.05); outline: none; }
  .style-opt[aria-selected="true"] { background: rgba(90,234,155,0.12); }

  /* Preview switches in the mail bar: New email / Reply, Light / Dark. */
  .mail-bar .seg-wrap { margin-left: auto; display: flex; gap: 6px; }
  .seg { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: #0d0d0d; }
  .seg button { font-family: inherit; font-size: 11.5px; font-weight: 600; border: 0; border-radius: 999px; padding: 4px 10px; cursor: pointer; background: transparent; color: var(--text-faint); }
  .seg button:hover { color: var(--text); }
  .seg button[aria-pressed="true"] { background: rgba(90,234,155,0.14); color: var(--accent); }
  .seg button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
  .sig-links { font-size: 13px; color: #5f6368; margin-top: 4px; }
  .sig-links a { color: #1a73e8; text-decoration: none; }
  .mail-body.dark .sig-links a { color: #8ab4f8; }
  @media (max-width: 520px) { .mail-bar .seg-wrap { gap: 4px; } .seg button { padding: 4px 8px; } }

  /* What people ask once it's in. */
  .guide-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
  .guide-notes div { background: #0d0d0d; border-radius: 12px; padding: 12px; }
  .guide-notes dt { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
  .guide-notes dd { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-faint); }
  .guide-notes strong { color: var(--text-dim); font-weight: 600; }
  @media (max-width: 600px) { .guide-notes { grid-template-columns: 1fr; } }

  /* Animated profile picture: the round photo and an inbox at actual size. */
  .pfp { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 14px; align-items: center; }
  .pfp-big canvas { width: 168px; height: 168px; border-radius: 50%; display: block; background: #121316; }
  .pfp-inbox { background: #fff; color: #202124; border-radius: 12px; padding: 8px 0; font-family: Arial, Helvetica, sans-serif; min-width: 0; }
  .pfp-inbox-head { font-size: 11px; color: #80868b; padding: 2px 14px 6px; }
  .pfp-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 14px; font-size: 13px; }
  .pfp-row.you { background: #f2f6fc; }
  .pfp-row img, .pfp-row canvas, .pfp-row i { width: 40px; height: 40px; border-radius: 50%; display: block; object-fit: cover; }
  .pfp-row i { background: #e8def8; color: #4a3b73; font-style: normal; font-weight: 700; display: grid; place-items: center; }
  .pfp-row div { min-width: 0; display: flex; flex-direction: column; }
  .pfp-row b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pfp-row span { color: #5f6368; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pfp-row time { font-size: 12px; color: #5f6368; }
  .pfp-file { position: relative; cursor: pointer; }
  .pfp-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
  .pfp-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
  .pfp-steps { margin: 12px 0 0; padding-left: 20px; color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }
  .pfp-steps strong { color: var(--text); font-weight: 600; }
  .pfp-steps a { color: var(--accent); }
  @media (max-width: 520px) { .pfp { grid-template-columns: 1fr; justify-items: center; } .pfp-inbox { width: 100%; } }
