/* ficklestudio26 — shared site chrome (top bar on every tool page + hub page).
   Everything is prefixed `fs-` so it never collides with the tools' own styles. */

.fs-bar {
  position: sticky;   /* stays at the top while scrolling, so "Go Pro" is always in reach */
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e8e8ec;
  font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1d1d22;
  -webkit-font-smoothing: antialiased;
}
.fs-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.fs-bar a { color: inherit; text-decoration: none; }
.fs-bar__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.fs-bar__brand svg { display: block; }
.fs-bar__tools {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.fs-bar__tools::-webkit-scrollbar { display: none; }
.fs-bar__tools a {
  padding: 7px 10px;
  border-radius: 6px;
  color: #5b5b66;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.fs-bar__tools a:hover { background: #f2f2f5; color: #1d1d22; }
.fs-bar__tools a[aria-current="page"] { color: #1d1d22; background: #f2f2f5; }

@media (max-width: 640px) {
  .fs-bar__inner { gap: 10px; }
  .fs-bar__brand span { display: none; }
  .fs-bar__tools { margin-left: 0; }
  .fs-bar__tools a { padding: 7px 8px; }
}

@media print {
  .fs-bar { display: none !important; }
}

/* ── "Go Pro" button in the top bar ─────────────────────────── */
.fs-bar__pro {
  flex-shrink: 0; margin-left: 4px; padding: 6px 12px; border-radius: 99px;
  border: 1px solid #1d1d22; background: #1d1d22; color: #fff !important;
  font: 600 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; cursor: pointer; white-space: nowrap;
}
.fs-bar__pro:hover { background: #3a3a44; }
.is-pro .fs-bar__pro { background: #fff; color: #2f9e44 !important; border-color: #b2f2bb; }
@media (max-width: 640px) { .fs-bar__pro { padding: 6px 9px; } }

/* ── Ad spots (invisible until an ad unit is configured) ────── */
.ad-slot { display: none; }
.ad-slot.is-on { display: block; margin: 32px auto; max-width: 970px; text-align: center; clear: both; }
.ad-slot__label {
  display: block; margin-bottom: 4px; color: #9a9aa5;
  font: 10px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.is-pro .ad-slot { display: none !important; }

/* ── Pro window ─────────────────────────────────────────────── */
.fs-pro-open { overflow: hidden; }
.fs-pro {
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: #1d1d22;
}
.fs-pro__backdrop { position: absolute; inset: 0; background: rgba(15, 15, 25, .55); backdrop-filter: blur(2px); }
.fs-pro__dialog {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 18px; padding: 28px 26px 22px; box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.fs-pro__x {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: #f2f2f5; color: #5b5b66; cursor: pointer;
}
.fs-pro__eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8b8b96; }
.fs-pro h2 { margin: 2px 0 10px; font: 800 28px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: -0.03em; color: #1d1d22; }
.fs-pro__reason { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #fff4e6; color: #8a4b08; font-size: 14px; }
.fs-pro__status {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 12px;
  border-radius: 10px; background: #ebfbee; color: #2b8a3e; font-size: 14px;
}
.fs-pro__link { margin-left: auto; border: 0; background: none; color: #5b5b66; text-decoration: underline; cursor: pointer; font-size: 13px; }
.fs-pro__benefits { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; }
.fs-pro__benefits li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #3a3a44; }
.fs-pro__benefits svg { flex-shrink: 0; margin-top: 3px; color: #2f9e44; }
.fs-pro__plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 10px; }
.fs-pro__plan { position: relative; padding: 16px 14px 14px; border: 1px solid #e8e8ec; border-radius: 14px; display: flex; flex-direction: column; }
.fs-pro__plan.is-best { border-color: #3b5bdb; box-shadow: 0 0 0 1px #3b5bdb inset; }
.fs-pro__tag { position: absolute; top: -10px; left: 14px; padding: 2px 8px; border-radius: 99px; background: #3b5bdb; color: #fff; font-size: 11px; font-weight: 700; }
.fs-pro__plan-name { margin: 0; font-weight: 600; font-size: 14px; }
.fs-pro__price { margin: 2px 0 2px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.fs-pro__note { margin: 0 0 12px; font-size: 12.5px; color: #6b6b76; flex: 1; }
.fs-pro__buy {
  display: block; text-align: center; padding: 10px; border-radius: 10px; background: #1d1d22; color: #fff;
  font-weight: 600; text-decoration: none; font-size: 14px;
}
.fs-pro__plan.is-best .fs-pro__buy { background: #3b5bdb; }
.fs-pro__buy.is-disabled, .fs-pro__plan.is-best .fs-pro__buy.is-disabled { background: #f2f2f5; color: #8b8b96; cursor: default; }
.fs-pro__code { margin: 14px 0 6px; padding-top: 14px; border-top: 1px solid #f0f0f3; }
.fs-pro__code label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.fs-pro__row { display: flex; gap: 8px; }
.fs-pro__row input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #d9d9e0; border-radius: 10px;
  font: 14px ui-monospace, Menlo, Consolas, monospace; color: #1d1d22; background: #fff;
}
.fs-pro__row button { padding: 0 16px; border: 0; border-radius: 10px; background: #1d1d22; color: #fff; font-weight: 600; cursor: pointer; }
.fs-pro__row button:disabled { opacity: .6; cursor: wait; }
.fs-pro__msg { min-height: 20px; margin: 6px 0 0; font-size: 13px; color: #5b5b66; }
.fs-pro__msg.is-ok { color: #2b8a3e; }
.fs-pro__msg.is-err { color: #c92a2a; }
.fs-pro__small { margin: 6px 0 0; font-size: 12px; color: #8b8b96; }
.fs-pro__small a { color: #5b5b66; }
@media (max-width: 480px) { .fs-pro__plans { grid-template-columns: 1fr; } .fs-pro__dialog { padding: 24px 18px 18px; } }

/* ── Wait screen before free downloads ──────────────────────── */
.fs-wait {
  position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15, 15, 25, .5); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.fs-wait__card { width: 100%; max-width: 360px; padding: 28px 24px; border-radius: 18px; background: #fff; color: #1d1d22; text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,.25); }
.fs-wait__ring {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; border: 4px solid #e8e8ec; border-top-color: #3b5bdb;
  display: flex; align-items: center; justify-content: center; animation: fs-spin 1s linear infinite;
}
.fs-wait__ring span { animation: fs-spin 1s linear infinite reverse; font-weight: 800; font-size: 22px; }
@keyframes fs-spin { to { transform: rotate(360deg); } }
.fs-wait__title { margin: 0 0 4px; font-weight: 700; font-size: 17px; }
.fs-wait__sub { margin: 0 0 16px; color: #6b6b76; font-size: 13.5px; }
.fs-wait__pro { padding: 9px 16px; border-radius: 99px; border: 1px solid #3b5bdb; background: #fff; color: #3b5bdb; font-weight: 600; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .fs-wait__ring, .fs-wait__ring span { animation: none; } }

/* ── Download dialog (download.js) ──────────────────────────── */
.fs-dl .fs-pro__dialog { max-width: 620px; }
.fs-dl__cards { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; margin: 10px 0 6px; }
.fs-dl__card { border: 1px solid #e8e8ec; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.fs-dl__card h3 { margin: 0; font-size: 16px; }
.fs-dl__card p { margin: 0; font-size: 13.5px; color: #5b5b66; }
.fs-dl__card ul { margin: 0; padding-left: 18px; font-size: 13px; color: #3a3a44; }
.fs-dl__card.is-pro { border-color: #3b5bdb; background: #f7f8ff; }
.fs-dl__card.is-muted { background: #fafafb; }
.fs-dl__btn {
  display: block; width: 100%; text-align: center; padding: 10px 12px; border-radius: 10px; border: 1px solid #1d1d22;
  background: #fff; color: #1d1d22; font: 600 14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; cursor: pointer;
}
.fs-dl__btn.is-primary { background: #3b5bdb; border-color: #3b5bdb; color: #fff; }
.fs-dl__btn.is-disabled { border-color: #e8e8ec; color: #8b8b96; background: #f2f2f5; cursor: default; }
.fs-dl__btn:disabled { opacity: .55; cursor: wait; }
.fs-dl__buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fs-dl__try { background: #fff; border-radius: 10px; padding: 8px 10px; }
.fs-dl__ok { color: #2b8a3e !important; }
.fs-dl__small { font-size: 12px !important; color: #8b8b96 !important; margin: 4px 0 0; }
.fs-dl__small a { color: #5b5b66; }
.fs-dl__link { border: 0; background: none; padding: 0; color: #3b5bdb; text-decoration: underline; cursor: pointer; font: inherit; }
.fs-dl__msg { min-height: 18px; margin: 6px 0 0; font-size: 13px; color: #3b5bdb; }
.fs-dl__msg.is-err { color: #c92a2a; }
.fs-dl__again { margin-top: 8px; padding-top: 10px; border-top: 1px solid #f0f0f3; font-size: 13px; color: #5b5b66; }
.fs-dl__again p { margin: 0 0 4px; }
.fs-dl h2 + p, .fs-dl .fs-pro__dialog > p { font-size: 14px; color: #3a3a44; }
.fs-dl .fs-pro__dialog > .fs-dl__btn { margin-top: 12px; }
@media (max-width: 560px) { .fs-dl__cards { grid-template-columns: 1fr; } }
.fs-pro__price s { font-size: 15px; font-weight: 600; color: #a0a0aa; margin-right: 2px; }
.fs-pro__launch { display: block; font-size: 11px; font-weight: 700; color: #e8590c; letter-spacing: .02em; }
.fs-dl__btn s { font-weight: 500; opacity: .6; }

/* Outage notice (pro.js checkStatus): only while /api/status reports a problem */
.fs-outage {
  position: sticky; top: 0; z-index: 60; padding: 10px 16px; text-align: center;
  background: #fff4e5; color: #7a3d00; border-bottom: 1px solid #f3c58a; font: 600 14px/1.45 system-ui, sans-serif;
}
.fs-dl__why { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff4e5; color: #7a3d00; font-size: 13px; line-height: 1.45; }

/* ── Practice run (tour.js): only the highlighted thing can be pressed ───── */
.fs-tour__block { position: fixed; z-index: 100000; background: rgba(20, 20, 28, 0.55); }
.fs-tour__ring { position: fixed; z-index: 100001; pointer-events: none; border-radius: 10px;
  box-shadow: 0 0 0 3px #ffd43b, 0 0 0 7px rgba(255, 212, 59, 0.35); animation: fs-tour-pulse 1.6s ease-in-out infinite; }
@keyframes fs-tour-pulse { 50% { box-shadow: 0 0 0 3px #ffd43b, 0 0 0 11px rgba(255, 212, 59, 0.15); } }
.fs-tour__tip { position: fixed; z-index: 100002; max-width: calc(100vw - 24px); background: #fff; color: #1d1d22;
  border-radius: 14px; padding: 16px 16px 14px; box-shadow: 0 12px 40px rgba(0,0,0,.28); font: 14px/1.5 system-ui, -apple-system, sans-serif; }
.fs-tour__tip h3 { margin: 2px 0 6px; font-size: 17px; }
.fs-tour__tip p { margin: 0 0 8px; }
.fs-tour__count { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b6b75; }
.fs-tour__row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.fs-tour__go { border: 0; background: #3b5bdb; color: #fff; font: 600 14px system-ui, sans-serif; padding: 9px 14px; border-radius: 9px; cursor: pointer; }
.fs-tour__go:disabled { opacity: .7; cursor: wait; }
.fs-tour__quit { border: 0; background: none; color: #6b6b75; font: 500 13px system-ui, sans-serif; text-decoration: underline; cursor: pointer; padding: 6px; margin-left: auto; }

/* ── Quick guide card + "? Guide" button (tour.js) ─────────────────────── */
.fs-guide { position: fixed; z-index: 1500; right: 16px; bottom: 16px; width: 280px; max-width: calc(100vw - 32px);
  background: #fff; color: #1d1d22; border-radius: 14px; padding: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.2);
  font: 14px/1.45 system-ui, -apple-system, sans-serif; border: 1px solid #e8e8ec; }
.fs-guide__x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #6b6b75; padding: 4px; }
.fs-guide__eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3b5bdb; }
.fs-guide__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fs-guide__list button { border: 1px solid #dcdce3; background: #f7f7fa; border-radius: 99px; padding: 5px 10px; font: 600 12.5px system-ui, sans-serif; cursor: pointer; color: #1d1d22; }
.fs-guide__list button.is-on { background: #3b5bdb; border-color: #3b5bdb; color: #fff; }
.fs-guide__tip { margin: 10px 0; color: #4a4a55; font-size: 13.5px; min-height: 2.9em; }
.fs-guide__row { display: flex; gap: 8px; }
.fs-guide__btn { flex: 1; text-align: center; border: 1px solid #dcdce3; background: #fff; color: #1d1d22; border-radius: 9px; padding: 8px 10px;
  font: 600 13px system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.fs-guide__btn.is-primary { background: #3b5bdb; border-color: #3b5bdb; color: #fff; }
.fs-guide__flash { position: fixed; z-index: 1400; pointer-events: none; border-radius: 10px; box-shadow: 0 0 0 3px #3b5bdb, 0 0 0 9px rgba(59,91,219,.2); }
.fs-guide-pill { position: fixed; z-index: 1500; left: 14px; bottom: 14px; border: 1px solid #dcdce3; background: #fff; color: #1d1d22;
  border-radius: 99px; padding: 8px 13px; font: 600 13px system-ui, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.12); cursor: pointer; }
@media (max-width: 900px) { /* above the phone button bar */
  .fs-guide { left: 12px; right: 12px; width: auto; bottom: 86px; }
  .fs-guide-pill { bottom: 86px; }
}

/* In-app browser warning (pro.js) */
.fs-inapp { position: sticky; top: 0; z-index: 1001; padding: 10px 14px; background: #fff4e5; color: #7a3d00;
  border-bottom: 1px solid #f3c58a; font: 500 13.5px/1.45 system-ui, sans-serif; text-align: center; }
.fs-inapp button { margin-left: 6px; border: 1px solid #c98a3a; background: #fff; color: #7a3d00; border-radius: 7px; padding: 3px 9px; font: 600 12.5px system-ui, sans-serif; cursor: pointer; }
