/* Firefox-flavored browser shell */
.ff { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--header-bg); }
.ff-tabs {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px 0;
  min-height: 40px;
}
.ff-tab {
  display: flex; align-items: center; gap: 8px;
  flex: 0 1 190px;
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border-radius: 7px 7px 0 0;
  font-size: var(--fs-small);
  color: var(--text-secondary);
}
.ff-tab:hover { background: rgba(48, 48, 48, .09); }
.ff-tab.active { background: var(--base-bg); color: var(--text); box-shadow: 0 -1px 2px rgba(0,0,0,.08); }
.ff-tab .ft-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-tab .ft-close { width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; opacity: 0; }
.ff-tab:hover .ft-close, .ff-tab.active .ft-close { opacity: .8; }
.ff-tab .ft-close:hover { background: var(--hover-fill); opacity: 1; }
#ff-newtab { margin-bottom: 3px; }

.ff-toolbar {
  display: flex; align-items: center; gap: 5px;
  background: var(--base-bg);
  padding: 5px 8px;
  border-bottom: 1px solid var(--separator);
  flex: none;
}
.ff-urlbar {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  background: var(--entry-bg);
  border: 1px solid var(--entry-border);
  border-radius: 7px;
  height: 32px;
  padding: 0 11px;
}
.ff-urlbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ff-urlbar svg { color: var(--text-secondary); flex: none; }
.ff-urlbar input { flex: 1; border: none; outline: none; background: transparent; font-size: var(--fs-ui); }

.ff-content { flex: 1; overflow-y: auto; background: #fff; color: #15141a; user-select: text; }

/* start page */
.ff-start {
  min-height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 20px;
  gap: 26px;
  background: linear-gradient(180deg, #f9f9fb, #f2f2f5);
}
.ff-start .fs-logo { display: flex; align-items: center; gap: 12px; }
.ff-start .fs-logo .fs-word { font-size: 21px; font-weight: 700; color: #232227; }
.ff-searchbox {
  width: min(520px, 90%);
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid #cfcfd6;
  border-radius: 9px;
  padding: 11px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.ff-searchbox:focus-within { border-color: #0c75de; box-shadow: 0 0 0 2px rgba(12,117,222,.25); }
.ff-searchbox input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; color: inherit; }
.ff-tiles { display: grid; grid-template-columns: repeat(auto-fill, 96px); gap: 14px; justify-content: center; }
.ff-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 4px; border-radius: 9px; }
.ff-tile:hover { background: #ececf1; }
.ff-tile .ft-icon { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.15); background: #fff; display: grid; place-items: center; }
.ff-tile .ft-label { font-size: var(--fs-xsmall); color: #3d3d44; text-align: center; }

/* mock pages */
.mock-page { max-width: 860px; margin: 0 auto; padding: 34px 30px 60px; line-height: 1.55; }
.mock-page h1 { font-size: 27px; margin-bottom: 10px; }
.mock-page h2 { font-size: 19px; margin: 22px 0 8px; }
.mock-page p { margin: 8px 0; color: #33333b; }
.mock-nav {
  display: flex; align-items: center; gap: 18px;
  padding: 13px 30px;
  background: #69b53e;
  color: #fff;
  font-weight: 500;
}
.mock-nav .mn-brand { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 9px; }
.mock-hero {
  background: linear-gradient(120deg, #2f7a44, #59a86b);
  color: #fff;
  padding: 46px 30px;
  text-align: center;
}
.mock-hero h1 { font-size: 30px; margin-bottom: 8px; }
.mock-btn {
  display: inline-block;
  background: #fff; color: #2f7a44;
  font-weight: 700;
  padding: 9px 22px;
  border-radius: 7px;
  margin-top: 14px;
}
.mock-btn:hover { background: #eef7ea; }
.mock-link { color: #0c75de; cursor: pointer; }
.mock-link:hover { text-decoration: underline; }

.ff-offline {
  min-height: 100%;
  display: grid; place-items: center;
  background: #f9f9fb;
  text-align: center;
  padding: 40px;
}
.ff-offline .fo-box { max-width: 430px; }
.ff-offline h1 { font-size: 21px; margin: 16px 0 8px; }
.ff-offline p { color: #5b5b66; font-size: var(--fs-small); line-height: 1.5; }

@media (max-width: 760px) {
  .ff-tab { width: 120px; }
}
