/* FR Sites — Neocities-inspired visual language.
   Warm tan paper, teal header, pink/red accent, retro-web personality.
   Matches Neocities' actual open-source design. */

/* Let FR's .master-container handle the overall page width naturally.
   Editor + manage pages need more room — break out via shell modifier. */
.fr-sites-shell.is-wide ~ .master-container,
.master-container:has(.fr-sites-shell.is-wide) {
  max-width: none !important;
  width: 100% !important;
  padding: 0 20px !important;
}
.fr-sites-shell.is-wide .fr-sites-page { max-width: none; }

.fr-sites-shell,
.fr-sites-shell *,
.fr-sites-shell *::before,
.fr-sites-shell *::after { box-sizing: border-box; }

.fr-sites-shell {
  --tan: #f7f1e8;
  --tan-panel: #fbf7f0;
  --tan-dark: #efe7dc;
  --teal: #5e95a1;
  --teal-light: #6ba8b4;
  --teal-dark: #30424b;
  --pink: #e93250;
  --pink-dark: #c41d3a;
  --green: #daeea5;
  --ink: #343434;
  --ink-2: #666;
  --border: #ded3c4;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 22px rgba(48,66,75,.08);

  background: var(--tan);
  color: var(--ink);
  min-height: 100vh;
  font-family: "Lucida Grande", Verdana, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.fr-sites-shell a { color: var(--pink); text-decoration: none; }
.fr-sites-shell a:hover { text-decoration: underline; }
.fr-sites-shell h1, .fr-sites-shell h2, .fr-sites-shell h3 {
  font-family: 'Droid Serif', Georgia, "Times New Roman", serif;
  color: var(--pink);
  margin: 0 0 .5em;
}
.fr-sites-shell p { margin: 0 0 1em; }
.fr-sites-shell ul, .fr-sites-shell ol { margin: 0 0 1em; padding-left: 1.5em; }
.fr-sites-shell img { max-width: 100%; }

/* ===== Topbar (teal gradient like Neocities header-Outro) ===== */
.fr-sites-topbar {
  background: linear-gradient(180deg, var(--teal-light), var(--teal));
  border-bottom: 1px solid rgba(0,0,0,.15);
  padding: 14px 3%;
  color: #fff;
}
.fr-sites-topbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.fr-sites-brand-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff !important; text-decoration: none !important;
  font-weight: bold; font-size: 1.2em;
}
.fr-sites-brand-mark {
  width: 32px; height: 32px; border-radius: 6px;
  background: rgba(255,255,255,.2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .9em; font-weight: bold;
}
.fr-sites-brand-tag { font-size: .8em; opacity: .8; font-weight: normal; }

.fr-sites-nav {
  display: flex !important; flex-direction: row !important;
  align-items: center; gap: 2px; flex-wrap: wrap;
}
.fr-sites-nav-link {
  display: inline-block !important;
  padding: 6px 13px !important;
  border-radius: 3px !important;
  color: rgba(255,255,255,.85) !important;
  font-size: .9em; font-weight: normal;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
}
.fr-sites-nav-link:hover { background: rgba(255,255,255,.12) !important; color: #fff !important; text-decoration: none !important; }
.fr-sites-nav-link.is-active {
  background: rgba(0,0,0,.2) !important; color: #fff !important;
  font-weight: bold;
}

.fr-sites-spacer { flex: 1; }

.fr-sites-visit {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 3px;
  background: var(--pink) !important; color: #fff !important;
  font-weight: bold; font-size: .85em;
  text-decoration: none !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
}
.fr-sites-visit:hover { background: var(--pink-dark) !important; text-decoration: none !important; }

/* ===== Suspend banner ===== */
.fr-sites-suspend-banner {
  max-width: 1200px; margin: 16px auto 0; padding: 0 3%;
}
.fr-sites-suspend-banner > div {
  background: #fff4ed; border: 1px solid #f0b07d; border-left: 4px solid #d9820f;
  padding: 11px 14px; border-radius: 4px; color: #8a3a00; font-size: .9em;
}

/* ===== Content area ===== */
.fr-sites-page {
  padding: 25px 0 60px;
  max-width: 860px; margin-left: auto; margin-right: auto;
}
.fr-sites-h1 { font-size: 2em; margin-bottom: .3em; }
.fr-sites-sub { color: var(--ink-2); margin-bottom: 1.5em; }
.fr-sites-sub a { color: var(--pink); font-weight: bold; }

/* ===== Welcome box (green, cat energy) ===== */
.fr-welcome {
  background: var(--green);
  padding: 22px 22px 22px 22px;
  margin-bottom: 18px;
  border-radius: var(--radius);
}
.fr-welcome h2 { color: var(--teal-dark); font-size: 1.3em; margin-bottom: .4em; }
.fr-welcome p { margin-bottom: .5em; }

/* ===== Empty state (first run) ===== */
.fr-empty-state {
  text-align: center;
  padding: 60px 20px;
}
.fr-empty-state .cat-img {
  width: 120px; height: auto; margin: 0 auto 20px; display: block;
}
.fr-empty-state h2 { font-size: 2em; margin-bottom: .5em; }
.fr-empty-state p { font-size: 1.1em; color: var(--ink-2); max-width: 550px; margin: 0 auto 1.5em; }

/* ===== Buttons ===== */
.fr-btn-action {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(180deg, var(--pink), var(--pink-dark));
  color: #fff !important; font-weight: bold; font-size: .9em;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 3px;
  text-decoration: none !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
  cursor: pointer;
  font-family: inherit;
}
.fr-btn-action:hover { filter: brightness(1.08); text-decoration: none !important; }
.fr-btn-action.large { padding: 12px 30px; font-size: 1.1em; }

.fr-btn {
  display: inline-block;
  padding: 7px 14px;
  background: linear-gradient(180deg, var(--teal-light), var(--teal));
  color: #fff !important; font-weight: bold; font-size: .85em;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 3px;
  text-decoration: none !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
  cursor: pointer;
  font-family: inherit;
}
.fr-btn:hover { filter: brightness(1.06); text-decoration: none !important; }
.fr-btn-primary {
  background: linear-gradient(180deg, var(--pink), var(--pink-dark));
}
.fr-btn-ghost {
  background: transparent; color: var(--ink) !important;
  border: 1px solid var(--border); text-shadow: none;
}
.fr-btn-ghost:hover { background: var(--tan-dark); }
.fr-btn-danger {
  background: linear-gradient(180deg, #e85050, #c02020);
  color: #fff !important;
}
.fr-btn-danger:hover { filter: brightness(1.08); }

/* ===== Cards ===== */
.fr-card {
  background: var(--tan-panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  margin-bottom: 18px; box-shadow: var(--shadow);
}
.fr-card h2 {
  font-size: 1.1em; margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.fr-card-row {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; align-items: center;
}

/* ===== Form elements ===== */
.fr-form-row { margin-bottom: 16px; }
.fr-form-row label {
  display: block; font-weight: bold; font-size: .9em;
  color: var(--ink); margin-bottom: 5px;
}
.fr-input, .fr-textarea {
  display: block; width: 100%; max-width: 400px;
  padding: 9px 12px; font-size: .95em;
  border: 1px solid var(--border); border-radius: 4px;
  background: #fff; color: var(--ink);
  font-family: inherit; transition: border-color .15s;
}
.fr-input:focus, .fr-textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(94,149,161,.15);
}
.fr-textarea { min-height: 80px; resize: vertical; }

/* ===== Stats row ===== */
.fr-stats-row {
  display: flex; gap: 30px; margin-bottom: 20px; flex-wrap: wrap;
}
.fr-stat { text-align: center; }
.fr-stat strong { display: block; font-size: 1.8em; color: var(--teal-dark); font-family: sans-serif; }
.fr-stat span { font-size: .75em; text-transform: uppercase; color: var(--ink-2); }

/* ===== Storage meter ===== */
.fr-storage { margin-bottom: 20px; font-size: .9em; color: var(--ink-2); }
.fr-storage-bar {
  height: 10px; background: #ccc; border-radius: 8px; overflow: hidden; margin: 6px 0;
}
.fr-storage-fill { height: 100%; background: var(--pink); border-radius: 8px; }

/* ===== File panel (the Neocities look) ===== */
.fr-files {
  background: var(--tan-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 20px;
}
.fr-files-header {
  background: linear-gradient(180deg, var(--teal-light), var(--teal));
  color: #fff;
  padding: 10px 18px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.fr-files-header .breadcrumbs { font-weight: bold; font-size: .95em; }
.fr-files-header .breadcrumbs a { color: #fff !important; text-decoration: underline !important; }
.fr-files-actions { margin-left: auto; display: flex; gap: 8px; }

.fr-files-body {
  padding: 18px;
  min-height: 280px;
}

/* File tree items (rendered by dashboard.js) */
.fr-tree-list { list-style: none; margin: 0; padding: 0; }
.fr-tree-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: background .1s;
}
.fr-tree-item:hover { background: rgba(255,255,255,.6); }
.fr-tree-item.is-dir { font-weight: bold; }
.fr-tree-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal); }
.fr-tree-item.is-dir .fr-tree-icon { color: #d4a853; }
.fr-tree-name {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .9em; color: var(--ink);
}
.fr-tree-meta { font-size: .78em; color: var(--ink-2); flex-shrink: 0; }
.fr-tree-actions {
  display: none; gap: 4px; flex-shrink: 0;
}
.fr-tree-item:hover .fr-tree-actions { display: flex; }
.fr-tree-actions button {
  background: none; border: none; cursor: pointer; padding: 3px 5px;
  color: var(--ink-2); border-radius: 3px;
}
.fr-tree-actions button:hover { background: rgba(0,0,0,.08); color: var(--ink); }
.fr-tree-actions button.is-danger:hover { color: var(--pink); }

/* Drop zone text */
.fr-drop-zone {
  background: rgba(255,255,255,.25);
  border: 3px dashed var(--border);
  border-radius: 6px;
  min-height: 60px;
  padding: 16px;
  text-align: center; color: var(--ink-2); font-size: .88em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.fr-drop-zone.is-active { border-color: var(--teal); background: rgba(94,149,161,.08); }
#fr-tree.is-uploading .fr-drop-zone { border-color: var(--pink); }
#fr-tree.is-drop-active .fr-drop-zone { border-color: var(--teal); background: rgba(94,149,161,.12); }

/* ===== Site actions row ===== */
.fr-site-actions {
  font-size: .85em; color: var(--ink-2); margin-top: 12px;
}
.fr-site-actions a { color: var(--ink-2); margin-right: 12px; }
.fr-site-actions a:hover { color: var(--pink); }

/* ===== Card layout (for stats + storage side by side) ===== */
.fr-card-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.fr-card-row > * { flex: 1 1 300px; }

/* ===== Toast ===== */
.fr-toast-host {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.fr-toast {
  background: var(--teal-dark); color: #fff; padding: 10px 16px; border-radius: 4px;
  font-size: .9em; max-width: 320px; box-shadow: 0 4px 16px rgba(0,0,0,.2);
  animation: fr-toast-in .25s ease;
}
.fr-toast.is-error { background: var(--pink); }
.fr-toast.is-good { background: #229954; }
@keyframes fr-toast-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ===== Editor page ===== */
.fr-editor-frame {
  display: grid !important; grid-template-columns: 220px 1fr !important; gap: 0;
  height: calc(100vh - 200px) !important; min-height: 500px !important;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.fr-editor-tree {
  border-right: 1px solid var(--border); background: var(--tan-dark);
  overflow: hidden; display: flex !important; flex-direction: column !important;
  height: 100%; min-height: 0;
}
.fr-editor-tree-toolbar {
  padding: 8px 10px; border-bottom: 1px solid var(--border); display: flex; gap: 4px;
  background: linear-gradient(180deg, var(--teal-light), var(--teal));
}
.fr-editor-tree .fr-tree-list { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 4px 0; }
.fr-editor-pane {
  display: flex !important; flex-direction: column !important;
  min-width: 0; height: 100%; min-height: 0;
  background: #fff; font-size: 14px; color: #333;
}
.fr-editor-tabs {
  display: flex; gap: 0; background: var(--tan-dark);
  border-bottom: 1px solid var(--border); overflow-x: auto; min-height: 34px;
  flex-shrink: 0;
}
.fr-editor-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: .85em;
  border: 1px solid transparent; border-bottom: none;
  cursor: pointer; user-select: none; max-width: 180px;
  background: transparent;
}
.fr-editor-tab.is-active { background: #fff; border-color: var(--border); border-bottom-color: #fff; margin-bottom: -1px; }
.fr-editor-tab .fr-tab-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.fr-editor-tab .fr-tab-close {
  background: none; border: none; padding: 0 2px; color: var(--ink-2);
  cursor: pointer; font-size: 1rem; line-height: 1;
}
.fr-editor-tab .fr-tab-close:hover { color: var(--pink); }
.fr-editor-tab.is-dirty .fr-tab-name::after { content: " *"; color: #d97706; font-weight: bold; }
.fr-editor-host { flex: 1 1 0 !important; min-height: 0 !important; position: relative; overflow: hidden; }
.fr-editor-host .CodeMirror { height: 100% !important; font-size: 14px !important; font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; }
.fr-editor-empty {
  display: flex; align-items: center; justify-content: center;
  height: 100%; color: var(--ink-2); font-size: .95em; text-align: center; padding: 16px;
}
.fr-editor-status {
  display: flex; align-items: center; gap: 12px;
  padding: 5px 12px; border-top: 1px solid var(--border);
  background: var(--tan-dark); font-size: .8em; color: var(--ink-2);
  flex-shrink: 0;
}
.fr-editor-status .fr-spacer { flex: 1; }

.fr-preview-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(60vw, 720px);
  background: #fff; border-left: 1px solid var(--border); box-shadow: -4px 0 16px rgba(0,0,0,.1);
  display: flex; flex-direction: column; z-index: 9000;
  transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
}
.fr-preview-drawer.is-open { transform: translateX(0); visibility: visible; }
.fr-preview-toolbar {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid var(--border); background: var(--tan-dark);
}
.fr-preview-url { flex: 1; font-family: monospace; font-size: .8em; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-preview-iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* ===== Learn section ===== */
.fr-learn-page { padding: 25px 0 60px; }

.fr-learn-hero {
  background: var(--green);
  padding: 30px 28px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.fr-learn-hero h1 { color: var(--teal-dark); font-size: 2em; margin-bottom: .3em; }
.fr-learn-hero p { color: var(--ink); max-width: 60ch; }

.fr-learn-grid { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.fr-learn-toc {
  position: sticky; top: 80px; align-self: start;
  background: var(--tan-panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 12px 8px; box-shadow: var(--shadow);
}
.fr-learn-toc h3 { font-family: sans-serif; font-size: .75em; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 10px; }
.fr-learn-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: lc; }
.fr-learn-toc li { counter-increment: lc; margin: 0 0 3px; }
.fr-learn-toc a {
  display: block; padding: 5px 8px; border-radius: 3px;
  color: var(--ink) !important; font-size: .9em; text-decoration: none !important;
}
.fr-learn-toc a::before { content: counter(lc) ". "; color: var(--ink-2); }
.fr-learn-toc a:hover { background: rgba(94,149,161,.1); }
.fr-learn-toc a.is-active { background: var(--teal); color: #fff !important; }
.fr-learn-toc a.is-active::before { color: rgba(255,255,255,.7); }

.fr-learn-article {
  background: var(--tan-panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px clamp(18px, 3vw, 40px); box-shadow: var(--shadow);
  font-size: 1em; line-height: 1.7; color: var(--ink);
}
.fr-learn-article .lesson-eyebrow { font-family: sans-serif; font-size: .75em; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); margin: 0 0 6px; font-weight: bold; }
.fr-learn-article h1 { font-size: 1.9em; line-height: 1.2; margin: 0 0 14px; }
.fr-learn-article h2 { font-size: 1.3em; margin: 28px 0 8px; }
.fr-learn-article h3 { font-size: 1.1em; margin: 20px 0 6px; }
.fr-learn-article p { margin: 0 0 14px; }
.fr-learn-article a { color: var(--pink); }
.fr-learn-article ul, .fr-learn-article ol { margin: 0 0 14px; padding-left: 22px; list-style: revert; }
.fr-learn-article li { margin-bottom: 4px; }
.fr-learn-article code {
  background: #efe7dc; border-radius: 3px; padding: 2px 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em;
}
.fr-learn-article pre {
  background: #1d1f21; color: #fff; padding: 14px 16px; border-radius: var(--radius);
  overflow-x: auto; margin: 12px 0 16px; font-size: .88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.55;
}
.fr-learn-article pre code { background: none; padding: 0; color: inherit; font-size: 1em; }
.fr-learn-article .note {
  background: var(--green); border-left: 4px solid var(--teal);
  padding: 12px 16px; border-radius: 0 4px 4px 0; margin: 14px 0 18px;
}
.fr-learn-article .note strong { color: var(--teal-dark); }
.fr-learn-article hr { border: none; border-top: 1px solid var(--border); margin: 30px 0; }

.fr-learn-pager {
  display: flex; justify-content: space-between; gap: 8px;
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border);
}
.fr-learn-pager a {
  padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border);
  text-decoration: none !important; color: var(--ink) !important; font-size: .9em;
  display: flex; flex-direction: column; gap: 2px; max-width: 48%;
}
.fr-learn-pager a:hover { background: var(--tan-panel); border-color: var(--teal); }
.fr-learn-pager a.next { text-align: right; margin-left: auto; }
.fr-learn-pager span { font-size: .72em; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }

.fr-learn-index-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.fr-learn-card {
  background: var(--tan-panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; text-decoration: none !important; color: var(--ink) !important;
  display: block; box-shadow: var(--shadow);
  transition: box-shadow .12s ease;
}
.fr-learn-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); border-color: var(--teal); }
.fr-learn-card-num { font-size: 1.8em; font-weight: bold; color: var(--pink); line-height: 1; font-family: sans-serif; }
.fr-learn-card-title { font-size: 1em; margin: 6px 0 4px; font-weight: bold; color: var(--ink); font-family: 'Droid Serif', Georgia, serif; }
.fr-learn-card-desc { color: var(--ink-2); font-size: .85em; margin: 0; }

/* ===== Browse / Gallery ===== */
.fr-browse-page { max-width: 900px; }
.fr-browse-hero {
  text-align: center; margin-bottom: 20px;
}
.fr-browse-hero h1 { font-size: 2em; margin-bottom: .2em; }
.fr-browse-hero p { color: var(--ink-2); font-size: 1.05em; margin: 0; }

.fr-browse-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px;
}
.fr-browse-tab {
  padding: 10px 20px; font-size: .9em; font-weight: bold;
  color: var(--ink-2) !important; text-decoration: none !important;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.fr-browse-tab:hover { color: var(--ink) !important; }
.fr-browse-tab.is-active {
  color: var(--pink) !important; border-bottom-color: var(--pink);
}

.fr-browse-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px; margin-bottom: 24px;
}

.fr-browse-tile {
  display: block; text-decoration: none !important; color: var(--ink) !important;
  background: var(--tan-panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s;
}
.fr-browse-tile:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-2px); }

.fr-browse-tile-preview {
  height: 140px; background: var(--tan-dark); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.fr-browse-tile-preview img { width: 100%; height: 100%; object-fit: cover; }
.fr-browse-tile-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  color: rgba(255,255,255,.7); font-size: 2.5em; font-weight: bold; letter-spacing: 2px;
}

.fr-browse-tile-info { padding: 12px 14px; }
.fr-browse-tile-title {
  display: block; font-size: .95em; font-weight: bold; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fr-browse-tile-user {
  display: block; font-size: .78em; color: var(--teal); margin-top: 2px;
}
.fr-browse-tile-desc {
  display: block; font-size: .82em; color: var(--ink-2); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fr-browse-tile-meta {
  display: block; font-size: .75em; color: var(--ink-2); margin-top: 6px;
}
.fr-browse-tile-tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.fr-browse-tag {
  font-size: .7em; padding: 2px 7px; border-radius: 10px;
  background: var(--tan-dark); color: var(--ink-2); border: 1px solid var(--border);
}

.fr-browse-pager {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 20px 0;
}
.fr-browse-pager-info { font-size: .85em; color: var(--ink-2); }

.fr-browse-empty {
  text-align: center; padding: 60px 20px; color: var(--ink-2);
}

.fr-browse-cta {
  text-align: center; padding: 24px; margin-top: 20px;
  background: var(--green); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.fr-browse-cta strong { font-size: 1.05em; color: var(--teal-dark); }
.fr-browse-cta span { font-size: .85em; color: var(--ink-2); }

/* ===== Per-user showcase ===== */
.fr-showcase-page { max-width: 700px; }
.fr-showcase-card {
  background: var(--tan-panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.fr-showcase-preview {
  height: 280px; background: var(--tan-dark); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.fr-showcase-preview img { width: 100%; height: 100%; object-fit: cover; }
.fr-showcase-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 100%; text-decoration: none !important;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  color: rgba(255,255,255,.8) !important;
}
.fr-showcase-placeholder span { font-size: 4em; font-weight: bold; letter-spacing: 4px; }
.fr-showcase-placeholder small { font-size: .9em; margin-top: 8px; opacity: .7; }

.fr-showcase-body { padding: 24px 28px; }
.fr-showcase-title { font-size: 1.8em; margin-bottom: .3em; }
.fr-showcase-url { margin-bottom: 10px; }
.fr-showcase-url a { color: var(--teal) !important; font-weight: bold; font-size: 1.05em; }
.fr-showcase-desc { color: var(--ink-2); margin-bottom: 14px; line-height: 1.6; }

.fr-showcase-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-size: .85em; color: var(--ink-2); margin-bottom: 14px;
}
.fr-showcase-meta a { color: var(--pink); }

.fr-showcase-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }

.fr-showcase-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.fr-showcase-back { margin-top: 18px; font-size: .9em; }
.fr-showcase-back a { color: var(--ink-2); }
.fr-showcase-back a:hover { color: var(--pink); }

/* ===== Mobile ===== */
@media (max-width: 800px) {
  .fr-sites-topbar-inner { gap: 10px; padding: 10px 4%; }
  .fr-sites-brand-tag { display: none; }
  .fr-sites-nav { gap: 0; overflow-x: auto; flex-wrap: nowrap; }
  .fr-sites-nav-link { padding: 5px 10px !important; font-size: .85em; white-space: nowrap; }
  .fr-learn-grid { grid-template-columns: 1fr; gap: 14px; }
  .fr-learn-toc { position: static; }
  .fr-editor-frame { grid-template-columns: 1fr; height: auto; }
  .fr-editor-tree { display: none; }
  .fr-editor-tree.is-mobile-open { display: flex; max-height: 220px; }
  .fr-card-row > * { flex: 1 1 100%; }
  .fr-preview-drawer { width: 100%; }
}

/* Breadcrumb nav links */
.fr-files-header .breadcrumbs a {
  color: #fff !important; text-decoration: underline; cursor: pointer;
}
.fr-files-header .breadcrumbs a:hover { opacity: .8; }
.fr-tree-empty {
  list-style: none; padding: 32px 16px; text-align: center;
  color: var(--ink-2); font-style: italic;
}
