/* Mindora Frontend Authority v0.5.5 — one shared app, section-specific accents.
   This stylesheet is owned by Frontend Authority and enqueued after the older
   versioned component styles. Section tokens are saved in Design Studio. */
body.mfa-shell{
  --mfa-section-accent:var(--mfa-accent);
  --mfa-section-edge:color-mix(in srgb,var(--mfa-section-accent) 42%,var(--mfa-border));
  --mfa-section-tint:color-mix(in srgb,var(--mfa-section-accent) 7%,var(--mfa-card));
}
/* v0.5.6: one editable typography standard for all main-page hero headings.
   No all-uppercase transformation; accent spans retain their section color. */
body.mfa-shell .mfa-main .mfa-hero h1,
body.mfa-shell .mfa-main .mfa-section-intro h1{
  font-family:var(--mfa-heading-font,var(--mfa-font))!important;
  font-size:clamp(30px,var(--mfa-heading-size,42px),60px)!important;
  font-weight:var(--mfa-heading-weight,700)!important;
  font-style:normal!important;
  line-height:1.12!important;
  letter-spacing:-.035em!important;
  text-transform:none!important;
}
@media(max-width:600px){
  body.mfa-shell .mfa-main .mfa-hero h1,
  body.mfa-shell .mfa-main .mfa-section-intro h1{
    font-size:clamp(30px,calc(var(--mfa-heading-size,42px) * .86),44px)!important;
  }
}
/* The nav, base backgrounds, body typography and light/dark logic are global. */
body.mfa-shell:is(.mfa-section-home,.mfa-section-quotes,.mfa-section-ideas,.mfa-section-shorts,.mfa-section-library) .mfa-main :is(.mfa-section-intro,.mfa-hero){
  border-color:var(--mfa-section-edge);
}
body.mfa-shell .mfa-hero .mfa-hero-highlight{color:var(--mfa-section-hero-accent,var(--mfa-section-accent))!important}
body.mfa-shell .mfa-section-intro .mfa-intro-highlight{color:var(--mfa-section-hero-accent,var(--mfa-section-accent))!important}
body.mfa-shell .mfa-section-intro .mfa-eyebrow{color:var(--mfa-section-hero-accent,var(--mfa-section-accent))!important}
body.mfa-shell .mfa-section-intro .mfa-intro-accent{background:var(--mfa-section-accent)!important}
body.mfa-shell:is(.mfa-section-quotes,.mfa-section-ideas,.mfa-section-shorts,.mfa-section-library) .mfa-main .mfa-card{
  border-color:var(--mfa-section-edge)!important;
}
body.mfa-shell .mfa-main .mfa-feed-heading{border-bottom-color:var(--mfa-section-edge)}
body.mfa-shell .mfa-main .mfa-check-new,
body.mfa-shell .mfa-main .mfa-load-more,
body.mfa-shell .mfa-main .mfa-heading-line>a{color:var(--mfa-section-accent)}
body.mfa-shell .mfa-main :is(.mfa-filters a,.mfa-sort-tabs a)[aria-current="true"]{
  border-color:var(--mfa-section-accent)!important;
}
body.mfa-shell.mfa-section-ideas .mfa-idea-card .mfa-related-box{border-left-color:var(--mfa-section-accent)}
body.mfa-shell.mfa-section-library .mfa-library-title{color:var(--mfa-text)}
body.mfa-shell.mfa-section-library .mfa-library-foot a{color:var(--mfa-section-accent)}
body.mfa-shell.mfa-section-shorts .mfa-short-reader-back,
body.mfa-shell.mfa-section-shorts .mfa-reader-back{color:var(--mfa-section-accent)}

/* Fixed, readable category tones. Category-to-tone mapping is deterministic by slug;
   labels do not change colors on each refresh. Day/night palettes retain contrast. */
body.mfa-shell .mfa-category-tone-0{--mfa-tone-bg:#173e3b;--mfa-tone-fg:#b3f0e2;--mfa-tone-line:#347970}
body.mfa-shell .mfa-category-tone-1{--mfa-tone-bg:#383050;--mfa-tone-fg:#e0d0ff;--mfa-tone-line:#71609c}
body.mfa-shell .mfa-category-tone-2{--mfa-tone-bg:#493424;--mfa-tone-fg:#ffdaad;--mfa-tone-line:#90714a}
body.mfa-shell .mfa-category-tone-3{--mfa-tone-bg:#283a53;--mfa-tone-fg:#cee3ff;--mfa-tone-line:#577aa5}
body.mfa-shell .mfa-category-tone-4{--mfa-tone-bg:#42303c;--mfa-tone-fg:#ffd0e6;--mfa-tone-line:#905a78}
body.mfa-shell .mfa-category-tone-5{--mfa-tone-bg:#34412c;--mfa-tone-fg:#d5edb2;--mfa-tone-line:#6b844c}
html[data-mfa-theme="day"] body.mfa-shell .mfa-category-tone-0{--mfa-tone-bg:#dff4ec;--mfa-tone-fg:#17574e;--mfa-tone-line:#8bc6b4}
html[data-mfa-theme="day"] body.mfa-shell .mfa-category-tone-1{--mfa-tone-bg:#eae2fb;--mfa-tone-fg:#553a84;--mfa-tone-line:#b9a5dd}
html[data-mfa-theme="day"] body.mfa-shell .mfa-category-tone-2{--mfa-tone-bg:#fbe9d5;--mfa-tone-fg:#774617;--mfa-tone-line:#d7ad7e}
html[data-mfa-theme="day"] body.mfa-shell .mfa-category-tone-3{--mfa-tone-bg:#dfebfb;--mfa-tone-fg:#245487;--mfa-tone-line:#a0bfdf}
html[data-mfa-theme="day"] body.mfa-shell .mfa-category-tone-4{--mfa-tone-bg:#f9e2ef;--mfa-tone-fg:#85375e;--mfa-tone-line:#d6a6c0}
html[data-mfa-theme="day"] body.mfa-shell .mfa-category-tone-5{--mfa-tone-bg:#eaf2d8;--mfa-tone-fg:#465b21;--mfa-tone-line:#b3c993}

/* Shorts discovery: ONLY main categories in the quick navigation. */
body.mfa-shell.mfa-section-shorts .mfa-shorts-discovery{min-width:0;margin:4px 0 22px}
body.mfa-shell.mfa-section-shorts .mfa-shorts-quick-heading{color:var(--mfa-muted);font-size:11px;font-weight:650;letter-spacing:.09em;margin:0 0 10px}
body.mfa-shell.mfa-section-shorts .mfa-shorts-quick-cats{display:flex;align-items:center;gap:8px;overflow-x:auto;overscroll-behavior-inline:contain;max-width:100%;padding:2px 2px 12px;scrollbar-width:thin}
body.mfa-shell.mfa-section-shorts .mfa-shorts-quick-cats a{display:inline-flex;flex:none;align-items:center;justify-content:center;min-height:37px;padding:8px 13px;border:1px solid var(--mfa-tone-line,var(--mfa-section-edge));border-radius:999px;background:var(--mfa-tone-bg,var(--mfa-card));color:var(--mfa-tone-fg,var(--mfa-text));font:550 12px/1.2 var(--mfa-font);text-decoration:none!important;white-space:nowrap;transition:border-color .15s ease}
body.mfa-shell.mfa-section-shorts .mfa-shorts-quick-cats a[aria-current="true"]{outline:2px solid var(--mfa-section-accent);outline-offset:1px}
body.mfa-shell.mfa-section-shorts .mfa-shorts-quick-cats a:focus-visible{outline:2px solid var(--mfa-section-accent);outline-offset:2px}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-panel{background:var(--mfa-card);border:1px solid var(--mfa-section-edge);border-radius:15px;overflow:hidden}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-panel>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:15px 16px;min-height:52px;cursor:pointer;color:var(--mfa-text);font-size:14px;font-weight:600}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-panel>summary::-webkit-details-marker{display:none}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-panel>summary .mfa-icon{width:18px;height:18px;color:var(--mfa-section-accent)}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-panel>summary .mfa-icon:last-child{margin-left:0;color:var(--mfa-muted)}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-panel[open]>summary .mfa-icon:last-child{transform:rotate(180deg)}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-panel>summary>small{margin-left:auto;color:var(--mfa-muted);font-size:12px;font-weight:450}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-panel>summary:focus-visible{outline:2px solid var(--mfa-section-accent);outline-offset:-3px}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-form{padding:4px 16px 18px;border-top:1px solid var(--mfa-section-edge)}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-form fieldset{border:0;padding:13px 0 12px;margin:0;min-width:0;border-bottom:1px solid var(--mfa-border)}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-form fieldset:last-of-type{border-bottom:0}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-form legend{display:block;width:100%;font-size:13px;font-weight:700;padding:0 0 8px;color:var(--mfa-text)}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-hint{margin:0 0 11px;font-size:12px;line-height:1.5;color:var(--mfa-muted)}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:7px}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-options label,
body.mfa-shell.mfa-section-shorts .mfa-shorts-sort-options label{display:flex;align-items:center;gap:9px;border:1px solid var(--mfa-border);border-radius:9px;padding:10px 11px;min-width:0;cursor:pointer;font-size:13px;background:var(--mfa-section-tint);color:var(--mfa-text)}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-options label:has(input:checked),
body.mfa-shell.mfa-section-shorts .mfa-shorts-sort-options label:has(input:checked){border-color:var(--mfa-section-accent)}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-form input{accent-color:var(--mfa-section-accent);width:15px;height:15px;flex:none}
body.mfa-shell.mfa-section-shorts .mfa-shorts-subgroup{margin:5px 0 14px}
body.mfa-shell.mfa-section-shorts .mfa-shorts-subgroup>strong{display:block;margin:6px 0 8px;font-size:12px;color:var(--mfa-section-accent)}
body.mfa-shell.mfa-section-shorts .mfa-shorts-sort-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:14px}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-actions a{color:var(--mfa-muted);font-size:13px;text-decoration:underline}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-actions button{border:1px solid var(--mfa-section-accent);border-radius:9px;background:var(--mfa-section-accent);color:var(--mfa-bg);font:650 13px/1.3 var(--mfa-font);padding:12px 17px;cursor:pointer}
body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-actions button:focus-visible{outline:2px solid var(--mfa-section-accent);outline-offset:3px}

/* Shorts cards: category bubbles → image → title → views / Read Full. */
body.mfa-shell .mfa-short-card{border-color:var(--mfa-section-edge)!important}
body.mfa-shell .mfa-short-card .mfa-short-copy--top{display:block!important;min-height:0!important;padding:12px 14px 10px!important}
body.mfa-shell .mfa-short-card .mfa-short-copy--top:empty{display:none!important}
body.mfa-shell .mfa-short-card .mfa-short-copy--top .mfa-short-taxonomies{margin:0;gap:6px}
body.mfa-shell .mfa-short-card .mfa-short-copy--top .mfa-short-category{display:inline-flex;align-items:center;background:var(--mfa-tone-bg);color:var(--mfa-tone-fg);border:1px solid var(--mfa-tone-line);border-radius:999px;padding:5px 10px;font-size:11px;font-weight:600;letter-spacing:.01em;line-height:1.3;text-transform:none}
body.mfa-shell .mfa-short-card .mfa-short-copy:not(.mfa-short-copy--top){min-height:0!important;gap:14px;padding:17px 17px 15px}
body.mfa-shell .mfa-short-card .mfa-short-copy h2{font-size:clamp(20px,2.2vw,25px);font-weight:550;line-height:1.33}
body.mfa-shell .mfa-short-card .mfa-short-meta{padding-top:13px;border-top:1px solid var(--mfa-section-edge);font-size:12px}
body.mfa-shell .mfa-short-card .mfa-short-meta>span:last-child{display:inline-flex;gap:4px;align-items:center;color:var(--mfa-section-accent);font-weight:600}
body.mfa-shell .mfa-short-card .mfa-short-meta .mfa-icon{width:16px;height:16px}
body.mfa-shell .mfa-short-card .mfa-short-cover{aspect-ratio:16 / 9;background:var(--mfa-section-tint)}
body.mfa-shell .mfa-short-card .mfa-short-cover .mfa-no-image{color:var(--mfa-section-accent)}
body.mfa-shell .mfa-short-card .mfa-short-card-link:focus-visible{outline:3px solid var(--mfa-section-accent);outline-offset:-3px}
/* No duplicated featured-image covers on individual Shorts or Library articles. */
body.mfa-shell.mfa-single-short .mfa-short-reader-cover{display:none!important}
body.mfa-shell.mfa-section-library .mfa-single-cover{display:none!important}
@media(max-width:600px){
  body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-form{padding:4px 12px 14px}
  body.mfa-shell.mfa-section-shorts .mfa-shorts-sort-options{grid-template-columns:1fr}
  body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.mfa-shell .mfa-short-card .mfa-short-copy:not(.mfa-short-copy--top){padding:17px 15px 14px}
}
@media(max-width:360px){
  body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-options{grid-template-columns:1fr}
  body.mfa-shell.mfa-section-shorts .mfa-shorts-filter-panel>summary>small{font-size:11px}
}


/* v0.5.9: the real category-pill issue is cramped horizontal overflow and edge clipping.
   Wrapping keeps All and the first/last categories fully visible on small screens. */
body.mfa-shell .mfa-main .mfa-filters,
body.mfa-shell.mfa-section-shorts .mfa-shorts-quick-cats{
  display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;
  width:100%;max-width:100%;min-width:0;overflow:visible!important;
  white-space:normal;gap:8px;box-sizing:border-box;
  padding:9px 4px 14px;margin-inline:0;scrollbar-width:auto;
}
body.mfa-shell .mfa-main .mfa-filters a,
body.mfa-shell.mfa-section-shorts .mfa-shorts-quick-cats a{
  flex:0 0 auto;max-width:100%;min-width:0;white-space:normal;
  overflow-wrap:anywhere;text-align:center;
}
body.mfa-shell .mfa-main .mfa-filters a:first-child,
body.mfa-shell.mfa-section-shorts .mfa-shorts-quick-cats a:first-child{
  padding-inline:16px;min-height:38px;border:1px solid var(--mfa-section-edge);
  border-radius:999px;background:var(--mfa-card);color:var(--mfa-text);
}
body.mfa-shell .mfa-main .mfa-filters a:first-child[aria-current="true"],
body.mfa-shell.mfa-section-shorts .mfa-shorts-quick-cats a:first-child[aria-current="true"]{
  color:var(--mfa-section-accent);background:var(--mfa-section-tint);
}

/* Homepage: one theme, four recognisable section palettes from Design Studio. */
body.mfa-shell.mfa-section-home .mfa-path-grid a{position:relative;isolation:isolate;overflow:hidden;transition:transform .16s ease,border-color .16s ease}
body.mfa-shell.mfa-section-home .mfa-path-grid a:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--mfa-path-color);opacity:.95}
body.mfa-shell.mfa-section-home .mfa-path-grid a:after{content:"";position:absolute;right:-25px;bottom:-35px;width:104px;height:104px;border-radius:50%;border:1px solid var(--mfa-path-color);opacity:.17;pointer-events:none}
body.mfa-shell.mfa-section-home .mfa-path-grid a:is(:hover,:focus-visible){border-color:var(--mfa-path-color);transform:translateY(-2px)}
body.mfa-shell.mfa-section-home .mfa-path-grid a .mfa-icon{color:var(--mfa-path-color);width:29px;height:29px}
body.mfa-shell.mfa-section-home .mfa-path-grid a strong{color:var(--mfa-path-color);font-weight:650}
body.mfa-shell.mfa-section-home .mfa-path-grid a.mfa-path-quotes{--mfa-path-color:var(--mfa-home-quotes,#79d9cd)}
body.mfa-shell.mfa-section-home .mfa-path-grid a.mfa-path-ideas{--mfa-path-color:var(--mfa-home-ideas,#c5acff)}
body.mfa-shell.mfa-section-home .mfa-path-grid a.mfa-path-shorts{--mfa-path-color:var(--mfa-home-shorts,#e8b788)}
body.mfa-shell.mfa-section-home .mfa-path-grid a.mfa-path-library{--mfa-path-color:var(--mfa-home-library,#b1d3ff)}
body.mfa-shell.mfa-section-home .mfa-heading-line--quotes{--mfa-home-heading-color:var(--mfa-home-quotes,#79d9cd)}
body.mfa-shell.mfa-section-home .mfa-heading-line--ideas{--mfa-home-heading-color:var(--mfa-home-ideas,#c5acff)}
body.mfa-shell.mfa-section-home .mfa-heading-line--shorts{--mfa-home-heading-color:var(--mfa-home-shorts,#e8b788)}
body.mfa-shell.mfa-section-home .mfa-heading-line--library{--mfa-home-heading-color:var(--mfa-home-library,#b1d3ff)}
body.mfa-shell.mfa-section-home .mfa-heading-line[class*="mfa-heading-line--"]{border-left:3px solid var(--mfa-home-heading-color);padding-left:14px}
body.mfa-shell.mfa-section-home .mfa-heading-line[class*="mfa-heading-line--"] .mfa-eyebrow,
body.mfa-shell.mfa-section-home .mfa-heading-line[class*="mfa-heading-line--"]>a{color:var(--mfa-home-heading-color)}

/* Quote archive: refined editorial cards rather than the default WordPress box. */
body.mfa-shell .mfa-quote-grid{gap:16px}
body.mfa-shell .mfa-quote{--mfa-quote-card-accent:var(--mfa-home-quotes,var(--mfa-section-accent,var(--mfa-accent)));
  position:relative;overflow:hidden;border-radius:16px!important;
  border:1px solid color-mix(in srgb,var(--mfa-section-accent,var(--mfa-accent)) 42%,var(--mfa-border))!important;
  background:linear-gradient(137deg,color-mix(in srgb,var(--mfa-section-accent,var(--mfa-accent)) 8%,var(--mfa-card)),var(--mfa-card) 78%);
}
body.mfa-shell .mfa-quote .mfa-quote-open{display:block;position:relative;min-height:100%}
body.mfa-shell .mfa-quote .mfa-quote-body{position:relative;padding:clamp(24px,4vw,41px);min-height:210px;gap:18px;background:transparent}
body.mfa-shell .mfa-quote .mfa-quote-rule{display:block;width:42px;height:2px;flex:none;background:var(--mfa-section-accent,var(--mfa-accent));border-radius:2px}
body.mfa-shell .mfa-quote .mfa-quote-body p{font-family:var(--mfa-quote-font,var(--mfa-font));font-weight:var(--mfa-quote-weight,400);font-size:clamp(18px,2.1vw,23px);letter-spacing:-.017em;line-height:1.55;text-align:left}
body.mfa-shell .mfa-quote .mfa-quote-signature{font-weight:350;letter-spacing:.11em;opacity:.50;color:var(--mfa-text)}
body.mfa-shell .mfa-quote .mfa-quote-open:focus-visible{outline:2px solid var(--mfa-section-accent);outline-offset:-3px}
body.mfa-shell .mfa-quote:has(.mfa-quote-open:hover){border-color:var(--mfa-section-accent)!important}
body.mfa-shell .mfa-viewer-portrait.text-only{background:
  radial-gradient(circle at 96% 8%,color-mix(in srgb,var(--mfa-section-accent,var(--mfa-accent)) 18%,transparent),transparent 55%),
  linear-gradient(160deg,var(--mfa-card),var(--mfa-bg));border:1px solid var(--mfa-section-edge,var(--mfa-border));border-radius:14px;box-shadow:0 16px 46px #0002}
/* Single editorial perimeter: no second inset border in the quote viewer. */
body.mfa-shell .mfa-viewer-portrait.text-only .mfa-viewer-copy{position:relative;z-index:1;padding:clamp(29px,7vw,58px)}
body.mfa-shell .mfa-viewer-copy p{font-family:var(--mfa-quote-font,var(--mfa-font));font-weight:var(--mfa-quote-weight,400);line-height:1.53;letter-spacing:-.015em}
body.mfa-shell .mfa-viewer-copy small{opacity:.5;color:var(--mfa-text);letter-spacing:.12em}

/* Integrated Quote Studio; shares Mindora's single global day/night system. */
body.mfa-shell .mfa-quote-studio{position:fixed;inset:0;z-index:2300;overflow-y:auto;overscroll-behavior:contain;background:var(--mfa-bg);color:var(--mfa-text);padding:clamp(16px,3vw,32px) max(14px,env(safe-area-inset-right,0px)) calc(30px + env(safe-area-inset-bottom,0px));}
body.mfa-shell .mfa-quote-studio[hidden]{display:none!important}
body.mfa-studio-open{overflow:hidden}
body.mfa-shell .mfa-studio-inner{width:min(100%,1030px);margin-inline:auto}
body.mfa-shell .mfa-studio-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin:0 0 21px;padding:0 0 18px;border-bottom:1px solid var(--mfa-border)}
body.mfa-shell .mfa-studio-head small{display:block;color:var(--mfa-section-accent,var(--mfa-accent));font-size:10px;letter-spacing:.12em;font-weight:650;margin-bottom:6px}
body.mfa-shell .mfa-studio-head h2{font-family:var(--mfa-heading-font,var(--mfa-font));font-weight:500;line-height:1.12;letter-spacing:-.035em;font-size:clamp(23px,4vw,34px);margin:0}
body.mfa-shell .mfa-studio-head button{background:var(--mfa-card);color:var(--mfa-text);border:1px solid var(--mfa-border);border-radius:50%;width:40px;height:40px;display:grid;place-items:center;flex:none}
body.mfa-shell .mfa-studio-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(20px,4vw,52px);align-items:start}
body.mfa-shell .mfa-studio-preview{display:flex;flex-direction:column;align-items:center;gap:10px}
body.mfa-shell .mfa-studio-preview canvas{display:block;width:min(100%,400px);height:auto;aspect-ratio:2/3;border-radius:7px;box-shadow:0 20px 60px #0005;border:1px solid var(--mfa-border)}
body.mfa-shell .mfa-studio-preview p{margin:0;color:var(--mfa-muted);font-size:11px;letter-spacing:.02em}
body.mfa-shell .mfa-studio-options{min-width:0;display:grid;gap:17px}
body.mfa-shell .mfa-studio-section{min-width:0;border:1px solid var(--mfa-border);border-radius:14px;padding:17px;background:var(--mfa-card);margin:0}
body.mfa-shell .mfa-studio-section>h3,body.mfa-shell .mfa-studio-section>legend{font:650 12px/1.45 var(--mfa-font);letter-spacing:.04em;color:var(--mfa-text);margin:0 0 13px}
body.mfa-shell .mfa-studio-section>legend{padding:0 7px}
body.mfa-shell .mfa-studio-section>p{font-size:11px;line-height:1.55;color:var(--mfa-muted);margin:0 0 15px}
body.mfa-shell .mfa-studio-field-label{display:block;font-size:12px;color:var(--mfa-muted);margin:0 0 7px}
body.mfa-shell .mfa-studio-section select{display:block;width:100%;min-height:45px;border:1px solid var(--mfa-border);border-radius:9px;background:var(--mfa-bg);color:var(--mfa-text);padding:9px 12px;font:14px var(--mfa-font)}
body.mfa-shell .mfa-studio-swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
body.mfa-shell .mfa-studio-swatch{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;cursor:pointer}
body.mfa-shell .mfa-studio-swatch input{position:absolute;width:1px;height:1px;opacity:0}
body.mfa-shell .mfa-studio-swatch-color{width:100%;height:45px;border:2px solid var(--mfa-border);border-radius:9px;background:var(--mfa-swatch);display:block}
body.mfa-shell .mfa-studio-swatch input:checked+.mfa-studio-swatch-color{outline:2px solid var(--mfa-section-accent,var(--mfa-accent));outline-offset:2px}
body.mfa-shell .mfa-studio-swatch input:focus-visible+.mfa-studio-swatch-color{outline:3px solid var(--mfa-text);outline-offset:2px}
body.mfa-shell .mfa-studio-swatch small{text-align:center;font:11px/1.4 var(--mfa-font);color:var(--mfa-muted)}
body.mfa-shell .mfa-studio-range-label{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:12px;color:var(--mfa-muted)}
body.mfa-shell .mfa-studio-range-label output{color:var(--mfa-section-accent,var(--mfa-accent));font-size:14px;font-weight:650}
body.mfa-shell .mfa-studio-section input[type="range"]{width:100%;accent-color:var(--mfa-section-accent,var(--mfa-accent));margin:16px 0 2px;cursor:pointer}
body.mfa-shell .mfa-studio-range-notes{display:flex;justify-content:space-between;color:var(--mfa-muted);font-size:11px}
body.mfa-shell .mfa-studio-watermark-note{margin:12px 0 0!important}
body.mfa-shell .mfa-studio-save{min-height:50px;display:inline-flex;justify-content:center;align-items:center;gap:10px;width:100%;background:var(--mfa-section-accent,var(--mfa-accent));color:var(--mfa-bg);border:1px solid var(--mfa-section-accent,var(--mfa-accent));border-radius:11px;font:650 14px var(--mfa-font);cursor:pointer}
body.mfa-shell .mfa-studio-save:is(:hover,:focus-visible){filter:brightness(1.08);outline:2px solid var(--mfa-text);outline-offset:2px}
@media(max-width:700px){
  body.mfa-shell .mfa-studio-layout{grid-template-columns:minmax(0,1fr);gap:19px}
  body.mfa-shell .mfa-studio-preview canvas{width:min(64vw,290px)}
  body.mfa-shell .mfa-studio-head{margin-bottom:15px}
  body.mfa-shell .mfa-studio-section{padding:14px}
}
@media(max-width:380px){body.mfa-shell .mfa-studio-preview canvas{width:min(61vw,240px)}}

/* Text quotes have five actions; image quotes still use four. Keep both on one row. */
body.mfa-shell .mfa-viewer-actions:has([data-viewer-action="copy"]:not([hidden])):has([data-viewer-action="download"]:not([hidden])){
  grid-template-columns:repeat(5,minmax(0,1fr));gap:0;
}
body.mfa-shell .mfa-viewer-actions:has([data-viewer-action="copy"]:not([hidden])):has([data-viewer-action="download"]:not([hidden])) :is(button,a,span){min-width:0;padding-inline:1px}
body.mfa-shell .mfa-viewer-actions:has([data-viewer-action="copy"]:not([hidden])):has([data-viewer-action="download"]:not([hidden])) small{font-size:9px;white-space:nowrap}

/* v0.6.0: compact per-category Shorts topic disclosure instead of every group expanded. */
body.mfa-shell .mfa-shorts-category-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.mfa-shell .mfa-shorts-category-group{min-width:0;border:1px solid var(--mfa-border);border-radius:12px;background:var(--mfa-section-tint);overflow:hidden}
body.mfa-shell .mfa-shorts-category-row{display:flex;align-items:center;gap:4px;min-height:47px;padding:4px 6px}
body.mfa-shell .mfa-shorts-category-row>label{display:flex;align-items:center;gap:8px;min-width:0;flex:1;cursor:pointer;padding:6px;font-size:13px}
body.mfa-shell .mfa-shorts-category-row>label span{overflow-wrap:anywhere}
body.mfa-shell .mfa-shorts-category-toggle{display:flex;align-items:center;gap:3px;flex:none;border:0;background:transparent;color:var(--mfa-section-accent);font-size:11px;padding:9px 5px;min-height:38px;cursor:pointer}
body.mfa-shell .mfa-shorts-category-toggle .mfa-icon{width:15px;height:15px;transition:transform .16s ease}
body.mfa-shell .mfa-shorts-category-toggle[aria-expanded="true"] .mfa-icon{transform:rotate(180deg)}
body.mfa-shell .mfa-shorts-category-children{border-top:1px solid var(--mfa-border);padding:10px}
body.mfa-shell .mfa-shorts-category-children[hidden]{display:none!important}
body.mfa-shell .mfa-shorts-category-children .mfa-shorts-filter-options{grid-template-columns:repeat(2,minmax(0,1fr))}
body.mfa-shell .mfa-shorts-category-group:has(.mfa-shorts-category-children:not([hidden])){grid-column:1/-1}
body.mfa-shell .mfa-studio-second-label{margin-top:13px}
@media(max-width:600px){body.mfa-shell .mfa-shorts-category-picker{grid-template-columns:1fr}}
