/* The author's tools, inside the site. Colours and fonts come from each
   design's --r-* tokens so they read as part of that design. */
[data-author-block] { display: none !important; }
.is-author [data-author-block] { display: block !important; }
.is-author .ff-dock[data-author-block] { display: flex !important; }
.is-author .ff-footlink { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ff-footlink a { color: inherit; opacity: .6; font-size: 13px; }

/* "Write something" bar above the blog and the passages */
.ff-prompt { background: var(--r-bg); color: var(--r-ink); border: 1.5px solid var(--r-line); border-radius: 20px; padding: 12px; margin: 0 0 26px; box-shadow: 0 18px 40px -28px rgba(0,0,0,.45); font-family: var(--r-body); text-align: left; }
.ff-prompt-main { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: var(--r-soft); color: inherit; border-radius: 999px; padding: 8px 18px 8px 8px; font: inherit; font-size: 17px; cursor: pointer; text-align: left; transition: background 160ms; }
.ff-prompt-main:hover { background: color-mix(in srgb, var(--r-accent) 12%, var(--r-soft)); }
.ff-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--r-accent); color: var(--r-on-accent); }
.ff-avatar svg { width: 20px; height: 20px; }
.ff-prompt-text { opacity: .7; }
.ff-prompt-chips { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 10px; padding: 0 4px; }
.ff-prompt-chips button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.ff-prompt-chips button:hover { background: var(--r-soft); }
.ff-prompt-chips svg { width: 18px; height: 18px; color: var(--r-accent); }

/* Edit pill on each of her posts */
.is-author [data-live]:not([data-quote]) { position: relative; }
.ff-edit { display: none; position: absolute; top: -12px; right: 10px; z-index: 3; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: var(--r-ink); color: var(--r-bg); font: 600 13px/1 var(--r-body); cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); }
.is-author .ff-edit { display: inline-flex; }
.ff-edit svg { width: 14px; height: 14px; }
html.anim.is-author .rotator blockquote:not(.on) { pointer-events: none; }
.ff-landed { animation: ff-land 2.4s cubic-bezier(.22, 1, .36, 1); }
@keyframes ff-land { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--r-accent) 70%, transparent); transform: translateY(14px); } 20% { transform: none; } 30% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--r-accent) 35%, transparent); } 100% { box-shadow: 0 0 0 22px transparent; } }

/* Dock */
.ff-dock { position: fixed; z-index: 40; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); translate: -50% 0; gap: 8px; padding: 6px; border-radius: 999px; background: var(--r-ink); box-shadow: 0 18px 40px -12px rgba(0,0,0,.55); font-family: var(--r-body); }
.ff-dock button { position: relative; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; font: 700 16px/1 var(--r-body); cursor: pointer; }
.ff-dock svg { width: 20px; height: 20px; }
.ff-dock-new { background: var(--r-accent); color: var(--r-on-accent); padding: 13px 22px 13px 18px; }
.ff-dock-bell { background: transparent; color: var(--r-bg); width: 46px; justify-content: center; }
.ff-dot { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 12px; display: grid; place-items: center; }
.is-author .sticky-buy { display: none; }
.is-author body { padding-bottom: 80px; }

/* Toast */
.ff-toast { position: fixed; z-index: 2147483000; left: 50%; bottom: 86px; translate: -50% 20px; opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); padding: 12px 12px 12px 20px; border-radius: 16px; background: var(--r-ink); color: var(--r-bg); font: 500 15px/1.3 var(--r-body); box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); transition: opacity 220ms, translate 320ms cubic-bezier(.22, 1, .36, 1); }
.ff-toast.show { opacity: 1; translate: -50% 0; pointer-events: auto; }
.ff-toast > span { min-width: 0; }
.ff-toast button { white-space: nowrap; flex: none; border: 0; border-radius: 999px; padding: 9px 14px; background: var(--r-accent); color: var(--r-on-accent); font: 700 14px/1 var(--r-body); cursor: pointer; }

/* Shared bits of the sheets */
.ff-lead { font-size: 17px; line-height: 1.55; opacity: .8; margin: 0 0 20px; }
.ff-msg { font-size: 15px; margin: 10px 0 0; min-height: 1em; color: var(--r-accent); }
.ff-primary { border: 0; border-radius: 999px; padding: 12px 22px; background: var(--r-accent); color: var(--r-on-accent); font: 700 16px/1 var(--r-body); cursor: pointer; }
.ff-primary:disabled { opacity: .6; }
.ff-signin form { display: grid; gap: 12px; }
.ff-signin input { font: inherit; font-size: 18px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--r-line); background: var(--r-field, var(--r-soft)); color: inherit; }
.ff-signin .ff-primary { justify-self: start; }

/* Composer */
.ff-compose .reader-inner { padding-top: 18px; }
.cmp-top { position: sticky; top: -18px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -18px calc(-1 * clamp(20px, 5vw, 48px)) 18px; padding: 14px clamp(20px, 5vw, 48px); background: var(--r-bg); border-bottom: 1px solid var(--r-line); }
.cmp-cancel { border: 0; background: none; color: inherit; font: 600 16px var(--r-body); cursor: pointer; padding: 8px 0; opacity: .75; }
.cmp-saved { font-size: 13px; opacity: .55; }
.cmp-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cmp-kinds button { border: 1.5px solid var(--r-line); background: transparent; color: inherit; border-radius: 999px; padding: 9px 16px; font: 600 15px/1 var(--r-body); cursor: pointer; }
.cmp-kinds button[aria-checked="true"] { background: var(--r-ink); border-color: var(--r-ink); color: var(--r-bg); }
.cmp-photo { position: relative; margin-bottom: 16px; }
.cmp-photo img { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 16px; }
.cmp-unphoto { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 22px; cursor: pointer; }
.cmp-title, .cmp-chapter, .cmp-body { display: block; width: 100%; border: 0; outline: 0; background: transparent; color: inherit; padding: 0; }
.cmp-title { font: 500 clamp(28px, 5vw, 38px)/1.15 var(--r-head); margin-bottom: 14px; }
.cmp-chapter { font: 600 14px var(--r-body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; color: var(--r-accent); }
.cmp-body { font: 18px/1.7 var(--r-body); resize: none; min-height: 220px; }
.ff-compose.is-passage .cmp-body { font: italic 21px/1.6 var(--r-head); }
.cmp-title::placeholder, .cmp-body::placeholder, .cmp-chapter::placeholder { color: inherit; opacity: .4; }
.cmp-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--r-line); }
.cmp-addphoto { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--r-body); cursor: pointer; padding: 8px 14px; border-radius: 999px; background: var(--r-soft); }
.cmp-addphoto svg { width: 20px; height: 20px; color: var(--r-accent); }
.cmp-count { font-size: 13px; opacity: .55; }
.cmp-delete { margin-top: 28px; border: 0; background: none; color: #d14343; font: 600 14px var(--r-body); cursor: pointer; padding: 6px 0; }

/* Comments in the reader, her view */
.c-remove { margin-left: auto; border: 0; background: none; color: #d14343; font: 600 12px var(--r-body); cursor: pointer; padding: 0; }

/* Activity */
.act-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 26px; }
.act-stats div { background: var(--r-soft); border-radius: 16px; padding: 16px 12px; text-align: center; }
.act-stats b { display: block; font: 600 clamp(30px, 6vw, 40px)/1 var(--r-head); color: var(--r-accent); }
.act-stats span { font-size: 13px; opacity: .7; }
.act-h { font: 500 22px var(--r-head); margin: 0 0 12px; }
.act-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.act-list a { display: block; color: inherit; text-decoration: none; background: var(--r-soft); border-radius: 16px; padding: 14px 16px; border-left: 4px solid transparent; }
.act-list li.is-new a { border-left-color: var(--r-accent); }
.act-head { margin: 0 0 4px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.act-when { margin-left: auto; font-size: 12px; opacity: .55; }
.act-body { margin: 0 0 8px; font-size: 16px; line-height: 1.5; }
.act-go { font-size: 13px; font-weight: 700; color: var(--r-accent); }
.act-empty { opacity: .7; padding: 12px 0; }
.act-out { border: 0; background: none; color: inherit; opacity: .6; font: 600 14px var(--r-body); cursor: pointer; text-decoration: underline; padding: 0; }
@media (prefers-reduced-motion: reduce) { .ff-landed { animation: none; } .ff-toast { transition: none; } }
