.app-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  background: linear-gradient(var(--bg-hi), var(--bg));
  border-bottom: 1px solid var(--border);
}
.tbtn {
  width: 30px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-ctl);
  background: transparent;
  color: var(--fg-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}
.tbtn svg { width: 17px; height: 17px; }
.tbtn:hover:not(:disabled) { background: var(--hover-strong); border-color: var(--border); color: var(--fg); }
.tbtn:active:not(:disabled) { background: var(--hover); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12); }
.tbtn:disabled { opacity: 0.35; cursor: default; }
.tbtn.on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); }
.tsep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; flex: none; }

.menubar {
  flex: none;
  display: flex;
  padding: 2px 5px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.mb-item {
  padding: 4px 10px;
  font-size: 12.8px;
  border-radius: 4px;
  cursor: default;
  color: var(--fg);
}
.mb-item:hover, .mb-item.open { background: var(--accent); color: var(--accent-fg); }

.statusbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 26px;
  padding: 0 11px;
  font-size: 11.5px;
  color: var(--fg-mid);
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.statusbar .sb-right { margin-left: auto; display: flex; gap: 14px; }
.statusbar .sb-seg { white-space: nowrap; }

.app-sidebar {
  width: 178px;
  flex: none;
  padding: 7px 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.sb-head { padding: 7px 14px 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--fg-dim); }
.sb-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px;
  font-size: 12.8px;
  color: var(--fg);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.1s;
}
.sb-item svg { width: 17px; height: 17px; flex: none; }
.sb-item:hover { background: var(--hover); }
.sb-item.sel { background: var(--accent-soft); border-left-color: var(--accent); font-weight: 600; }
.sb-sep { height: 1px; background: var(--border); margin: 6px 10px; }

.nemo-main { flex: 1; display: flex; min-width: 0; }
.nemo-view { flex: 1; overflow: auto; background: var(--base); position: relative; }
.nemo-grid {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  padding: 12px;
}
.nemo-item {
  width: 96px;
  padding: 9px 4px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  cursor: default;
}
.nemo-item svg { width: 48px; height: 48px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18)); }
.nemo-item .ni-name {
  max-width: 90px;
  font-size: 11.5px;
  line-height: 1.3;
  text-align: center;
  color: var(--fg);
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border-radius: 3px;
  padding: 0 2px;
}
.nemo-item:hover { background: var(--hover); }
.nemo-item.selected { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.nemo-item.selected .ni-name { background: var(--accent); color: var(--accent-fg); }
.nemo-list { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.nemo-list th {
  position: sticky;
  top: 0;
  text-align: left;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--fg-mid);
  background: var(--bg-hi);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  white-space: nowrap;
  z-index: 2;
}
.nemo-list th:hover { color: var(--fg); }
.nemo-list td { padding: 5px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.nemo-list tr td:first-child { display: flex; align-items: center; gap: 8px; }
.nemo-list tr td:first-child svg { width: 18px; height: 18px; flex: none; }
.nemo-list tbody tr { cursor: default; }
.nemo-list tbody tr:hover { background: var(--hover); }
.nemo-list tbody tr.selected { background: var(--accent); color: var(--accent-fg); }
.nemo-list tbody tr.selected td { color: var(--accent-fg); }
.nemo-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--fg-dim);
}
.nemo-empty svg { width: 72px; height: 72px; opacity: 0.4; }
.nemo-empty .ne-msg { font-size: 13px; }
.pathbar {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 60px;
  height: 28px;
  padding: 0 5px;
  background: var(--base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-ctl);
  box-shadow: var(--entry-shadow);
  overflow: hidden;
}
.crumb {
  padding: 3px 8px;
  font-size: 12.5px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--fg);
  white-space: nowrap;
}
.crumb:hover { background: var(--hover-strong); }
.crumb-sep { color: var(--fg-dim); font-size: 11px; }
.nemo-search { width: 170px; height: 28px; }

.xed-wrap { flex: 1; display: flex; min-height: 0; background: var(--base); }
.xed-gutter {
  flex: none;
  padding: 8px 10px 8px 6px;
  text-align: right;
  font: 400 13px/1.55 var(--font-mono);
  color: var(--fg-dim);
  background: var(--base-alt);
  border-right: 1px solid var(--border);
  white-space: pre;
  overflow: hidden;
  user-select: none;
  min-width: 44px;
}
.xed-area {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  padding: 8px 12px;
  font: 400 13px/1.55 var(--font-mono);
  color: var(--fg);
  background: var(--base);
  white-space: pre;
  overflow: auto;
  tab-size: 4;
}
.xed-find {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  background: var(--bg-hi);
  border-bottom: 1px solid var(--border);
}
.xed-find .entry { height: 26px; width: 220px; }
.xed-find .ff-count { font-size: 11.5px; color: var(--fg-dim); }
.xed-ro {
  flex: none;
  padding: 6px 12px;
  font-size: 12px;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg));
  border-bottom: 1px solid var(--border);
  color: var(--fg-mid);
}

.term-body {
  flex: 1;
  padding: 7px 4px 7px 10px;
  background: #17181c;
  color: #e8e8e5;
  font: 400 13.2px/1.5 var(--font-mono);
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: text;
  user-select: text;
}
.term-line { min-height: 1.5em; }
.t-green { color: #8ae234; font-weight: 700; }
.t-blue { color: #729fcf; font-weight: 700; }
.t-cyan { color: #6ac4d8; }
.t-yellow { color: #e2c76a; }
.t-red { color: #e06c64; }
.t-gray { color: #9a9a96; }
.t-bold { font-weight: 700; }
.t-dir { color: #729fcf; font-weight: 700; }
.t-exec { color: #8ae234; font-weight: 700; }
.t-link { color: #6ac4d8; text-decoration: underline; }
.term-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #e8e8e5;
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { background: transparent; } }

.settings-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.set-home { flex: 1; overflow-y: auto; padding: 6px 26px 26px; }
.set-search-row { flex: none; display: flex; align-items: center; gap: 9px; padding: 12px 26px 8px; }
.set-search-row .entry { flex: 1; height: 32px; border-radius: 16px; padding: 0 14px; }
.set-section { margin-top: 18px; }
.set-section h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--fg-dim); margin-bottom: 9px; }
.set-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.set-item {
  width: 108px;
  padding: 14px 6px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.12s;
}
.set-item svg { width: 38px; height: 38px; color: var(--fg-mid); transition: transform 0.15s; }
.set-item:hover { background: var(--hover); border-color: var(--border); }
.set-item:hover svg { transform: translateY(-2px); color: var(--accent); }
.set-item .si-name { font-size: 12px; text-align: center; color: var(--fg); }
.set-page { flex: 1; overflow-y: auto; padding: 20px 28px 30px; }
.set-page h2 { font-size: 17px; font-weight: 600; margin-bottom: 18px; }
.set-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.set-row .sr-text { flex: 1; }
.set-row .sr-label { font-size: 13px; font-weight: 500; }
.set-row .sr-sub { font-size: 11.8px; color: var(--fg-dim); margin-top: 2px; }
.theme-cards { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.theme-card {
  width: 168px;
  border: 2px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--base);
}
.theme-card:hover { transform: translateY(-2px); box-shadow: var(--win-shadow-soft); }
.theme-card.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tc-prev { height: 92px; padding: 14px 14px 0; display: flex; align-items: flex-end; }
.tc-mini {
  width: 100%;
  height: 64px;
  border-radius: 6px 6px 0 0;
  border: 1px solid rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}
.tc-mini::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14px; }
.tc-mini::after { content: ""; position: absolute; top: 22px; left: 10px; width: 55%; height: 7px; border-radius: 3px; }
.tc-light .tc-mini { background: #ececec; }
.tc-light .tc-mini::before { background: linear-gradient(#fafafa, #e0e0e0); border-bottom: 1px solid #c0c0c0; }
.tc-light .tc-mini::after { background: var(--accent); }
.tc-dark .tc-mini { background: #2f2f2f; }
.tc-dark .tc-mini::before { background: linear-gradient(#454545, #3a3a3a); border-bottom: 1px solid #1a1a1a; }
.tc-dark .tc-mini::after { background: var(--accent); }
.tc-darker .tc-mini { background: #242424; }
.tc-darker .tc-mini::before { background: linear-gradient(#303030, #282828); border-bottom: 1px solid #121212; }
.tc-darker .tc-mini::after { background: var(--accent); }
.tc-name { padding: 9px 6px; text-align: center; font-size: 12.5px; font-weight: 500; }
.accent-row { display: flex; gap: 12px; margin: 8px 0 4px; }
.accent-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.13s;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.25);
}
.accent-dot:hover { transform: scale(1.13); }
.accent-dot.sel { border-color: var(--fg); box-shadow: 0 0 0 3px var(--accent-soft), inset 0 -3px 6px rgba(0,0,0,.18); }
.accent-dot.sel::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 13px; margin-top: 6px; }
.wp-card {
  border: 2px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
}
.wp-card:hover { transform: translateY(-2px); box-shadow: var(--win-shadow-soft); }
.wp-card.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wp-thumb { height: 96px; background-size: cover; background-position: center; }
.wp-name { padding: 7px 9px; font-size: 12px; background: var(--base); border-top: 1px solid var(--border); }
.seg-ctl { display: inline-flex; border: 1px solid var(--btn-border); border-radius: var(--radius-ctl); overflow: hidden; }
.seg-btn {
  padding: 6px 15px;
  font: 500 12.5px var(--font-ui);
  background: linear-gradient(var(--btn-hi), var(--btn-lo));
  border: none;
  border-right: 1px solid var(--btn-border);
  color: var(--fg);
  cursor: pointer;
}
.seg-btn:last-child { border-right: none; }
.seg-btn:hover { background: var(--btn-lo); }
.seg-btn.sel { background: var(--accent); color: var(--accent-fg); }
.about-hero { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 22px 0 26px; }
.about-hero svg { width: 84px; height: 84px; filter: drop-shadow(0 4px 14px color-mix(in srgb, var(--accent) 40%, transparent)); }
.about-hero .ah-name { font-size: 21px; font-weight: 300; }
.about-hero .ah-rel { font-size: 13px; color: var(--fg-mid); }
.about-rows { max-width: 430px; margin: 0 auto; }
.about-row { display: flex; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12.8px; }
.about-row .ar-k { width: 150px; color: var(--fg-dim); flex: none; }
.about-row .ar-v { color: var(--fg); }

.soft-header {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(var(--bg-hi), var(--bg));
  border-bottom: 1px solid var(--border);
}
.soft-header .sh-title { font-size: 15px; font-weight: 600; flex: none; }
.soft-header .entry { flex: 1; max-width: 380px; height: 31px; border-radius: 16px; padding: 0 13px; }
.soft-chips { flex: none; display: flex; gap: 7px; padding: 10px 14px; overflow-x: auto; border-bottom: 1px solid var(--border); background: var(--base-alt); }
.chip {
  padding: 5px 14px;
  font: 500 12px var(--font-ui);
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--base);
  color: var(--fg-mid);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.sel { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.soft-grid { flex: 1; overflow-y: auto; padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 13px; align-content: start; }
.soft-card {
  display: flex;
  gap: 12px;
  padding: 13px;
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.14s;
}
.soft-card:hover { transform: translateY(-2px); box-shadow: var(--win-shadow-soft); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.soft-card svg { width: 42px; height: 42px; flex: none; }
.soft-card .sc-name { font-size: 13px; font-weight: 600; }
.soft-card .sc-cat { font-size: 11px; color: var(--fg-dim); margin-top: 1px; }
.soft-card .sc-stars { margin-top: 5px; font-size: 11px; color: #e0a83c; letter-spacing: 1.5px; }
.soft-detail { flex: 1; overflow-y: auto; padding: 22px 26px; }
.sd-top { display: flex; gap: 19px; align-items: flex-start; }
.sd-top svg { width: 76px; height: 76px; flex: none; filter: drop-shadow(0 3px 8px rgba(0,0,0,.25)); }
.sd-name { font-size: 19px; font-weight: 600; }
.sd-meta { font-size: 12px; color: var(--fg-dim); margin-top: 3px; }
.sd-stars { color: #e0a83c; letter-spacing: 2px; font-size: 13px; margin-top: 6px; }
.sd-actions { margin-top: 13px; display: flex; align-items: center; gap: 12px; }
.sd-progress { width: 220px; height: 7px; border-radius: 4px; background: var(--hover-strong); overflow: hidden; }
.sd-progress > div { height: 100%; width: 0%; background: var(--accent); border-radius: 4px; transition: width 0.15s linear; }
.sd-desc { margin-top: 20px; font-size: 13px; line-height: 1.65; color: var(--fg-mid); max-width: 620px; }
.sd-tags { margin-top: 15px; display: flex; gap: 7px; }
.sd-tag { font-size: 11px; padding: 3px 10px; border-radius: 10px; background: var(--hover-strong); color: var(--fg-mid); }

.calc-body { flex: 1; display: flex; flex-direction: column; background: var(--bg); padding: 11px; gap: 9px; }
.calc-disp {
  flex: none;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 8px 13px;
  background: var(--base);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  box-shadow: var(--entry-shadow);
  overflow: hidden;
}
.calc-expr { font-size: 13px; color: var(--fg-dim); min-height: 17px; max-width: 100%; overflow: hidden; white-space: nowrap; }
.calc-val { font-size: 33px; font-weight: 300; color: var(--fg); max-width: 100%; overflow: hidden; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.calc-key {
  border: 1px solid var(--btn-border);
  border-radius: 7px;
  background: linear-gradient(var(--btn-hi), var(--btn-lo));
  font: 500 17px var(--font-ui);
  color: var(--fg);
  cursor: pointer;
  transition: all 0.09s;
  min-height: 40px;
}
.calc-key:hover { background: var(--btn-lo); }
.calc-key:active { transform: scale(0.95); box-shadow: inset 0 1px 3px rgba(0,0,0,.2); }
.calc-key.op { color: var(--accent); font-weight: 600; }
.calc-key.eq { background: linear-gradient(color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); color: var(--accent-fg); border-color: color-mix(in srgb, var(--accent) 65%, #000); }
.calc-key.eq:active { background: var(--accent-hover); }
.calc-key.fn { font-size: 14px; color: var(--fg-mid); }

.viewer-body { flex: 1; display: flex; align-items: center; justify-content: center; background: #141519; overflow: auto; position: relative; }
.viewer-img { max-width: 100%; max-height: 100%; transition: transform 0.16s; transform-origin: center; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
.viewer-img svg { width: 100%; height: 100%; }

.ff-tabs { flex: none; display: flex; align-items: flex-end; gap: 2px; padding: 6px 8px 0; background: #141417; }
.ff-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 210px;
  min-width: 90px;
  padding: 7px 11px;
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: #9a9aa0;
  font: 400 12.3px var(--font-ui);
  cursor: pointer;
  border: none;
  transition: background 0.12s;
}
.ff-tab:hover { background: rgba(255, 255, 255, 0.07); }
.ff-tab.on { background: #232327; color: #ececf0; }
.ff-tab .ft-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ff-tab .ft-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ff-tab .ft-close { border: none; background: transparent; color: inherit; opacity: 0.6; cursor: pointer; width: 17px; height: 17px; border-radius: 4px; display: flex; align-items: center; justify-content: center; flex: none; }
.ff-tab .ft-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.ff-tab .ft-close svg { width: 10px; height: 10px; }
.ff-newtab { border: none; background: transparent; color: #9a9aa0; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; margin-bottom: 3px; display: flex; align-items: center; justify-content: center; }
.ff-newtab:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ff-newtab svg { width: 14px; height: 14px; }
.ff-nav { flex: none; display: flex; align-items: center; gap: 5px; padding: 6px 9px; background: #232327; }
.ff-nbtn { width: 30px; height: 30px; border: none; border-radius: 6px; background: transparent; color: #c9c9cf; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ff-nbtn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); }
.ff-nbtn:disabled { opacity: 0.32; cursor: default; }
.ff-nbtn svg { width: 16px; height: 16px; }
.ff-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 13px;
  background: #141417;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #d6d6dc;
  transition: border-color 0.12s, background 0.12s;
}
.ff-url:focus-within { border-color: var(--accent); background: #101013; }
.ff-url svg { width: 13px; height: 13px; color: #7fbf72; flex: none; }
.ff-url input { flex: 1; border: none; outline: none; background: transparent; color: #e4e4ea; font-size: 12.8px; }
.ff-page { flex: 1; background: #fff; overflow: auto; }
.ff-loading { position: absolute; top: 0; left: 0; height: 2.5px; background: var(--accent); z-index: 5; animation: ff-load 0.7s ease forwards; }
@keyframes ff-load { from { width: 5%; } to { width: 88%; } }

.ffs-page { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 12vh 24px 40px; background: linear-gradient(#fbfdf8, #eef4e6); font-family: var(--font-ui); }
.ffs-logo svg { width: 92px; height: 92px; filter: drop-shadow(0 6px 18px rgba(138, 182, 88, 0.35)); }
.ffs-title { margin-top: 14px; font-size: 26px; font-weight: 300; color: #33412c; }
.ffs-search {
  margin-top: 26px;
  width: min(540px, 90%);
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid #cfdcc0;
  border-radius: 23px;
  box-shadow: 0 4px 16px rgba(60, 90, 40, 0.12);
  transition: box-shadow 0.15s, border-color 0.15s;
}
.ffs-search:focus-within { border-color: #8ab658; box-shadow: 0 6px 22px rgba(60, 90, 40, 0.2); }
.ffs-search svg { width: 17px; height: 17px; color: #8aa077; flex: none; }
.ffs-search input { flex: 1; border: none; outline: none; font-size: 14.5px; color: #2c3626; background: transparent; }
.ffs-links { margin-top: 38px; display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.ffs-link { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.ffs-link .fl-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 19px var(--font-ui);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.14s;
}
.ffs-link:hover .fl-circle { transform: translateY(-3px) scale(1.05); }
.ffs-link .fl-name { font-size: 11.8px; color: #5c6b52; }
.ffs-foot { margin-top: auto; padding-top: 46px; font-size: 11.5px; color: #93a285; }

.ffr-page { min-height: 100%; background: #fff; padding: 26px 0 60px; }
.ffr-head { display: flex; align-items: center; gap: 14px; padding: 0 34px 18px; border-bottom: 1px solid #e4e4e0; }
.ffr-head svg { width: 34px; height: 34px; }
.ffr-head input { flex: 1; max-width: 480px; height: 38px; padding: 0 15px; border: 1px solid #d4d4d0; border-radius: 19px; outline: none; font-size: 13.5px; color: #333; }
.ffr-head input:focus { border-color: #8ab658; box-shadow: 0 0 0 3px rgba(138, 182, 88, 0.18); }
.ffr-results { max-width: 640px; padding: 22px 34px; }
.ffr-stat { font-size: 12px; color: #8a8a86; margin-bottom: 18px; }
.ffr-item { margin-bottom: 24px; }
.ffr-item .fi-url { font-size: 12px; color: #5f6f52; }
.ffr-item .fi-title { font-size: 16.5px; color: #1a5fb4; cursor: pointer; margin: 2px 0 4px; }
.ffr-item .fi-title:hover { text-decoration: underline; }
.ffr-item .fi-snip { font-size: 13px; color: #54544f; line-height: 1.5; }
.ffr-item .fi-snip b { color: #2c3626; }

.ffw-page { min-height: 100%; background: #fff; }
.lm-nav { display: flex; align-items: center; gap: 26px; padding: 14px 34px; background: #6e9a44; color: #fff; }
.lm-nav svg { width: 30px; height: 30px; }
.lm-nav .ln-brand { font-size: 16px; font-weight: 600; letter-spacing: 0.3px; }
.lm-nav .ln-links { display: flex; gap: 19px; margin-left: auto; font-size: 13px; }
.lm-nav .ln-links span { cursor: pointer; opacity: 0.88; }
.lm-nav .ln-links span:hover { opacity: 1; text-decoration: underline; }
.lm-hero { padding: 64px 34px 54px; text-align: center; background: linear-gradient(160deg, #7fae52, #55803a); color: #fff; }
.lm-hero h1 { font-size: 38px; font-weight: 300; }
.lm-hero h1 b { font-weight: 700; }
.lm-hero p { margin: 13px auto 0; max-width: 560px; font-size: 15px; line-height: 1.6; opacity: 0.94; }
.lm-hero .lm-dl {
  display: inline-block;
  margin-top: 26px;
  padding: 11px 30px;
  background: #fff;
  color: #4c7030;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.13s;
}
.lm-hero .lm-dl:hover { transform: translateY(-2px); }
.lm-feats { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; padding: 46px 34px; max-width: 900px; margin: 0 auto; }
.lm-feat { width: 230px; text-align: center; }
.lm-feat svg { width: 42px; height: 42px; margin: 0 auto 12px; color: #6e9a44; }
.lm-feat h3 { font-size: 15px; margin-bottom: 7px; color: #33412c; }
.lm-feat p { font-size: 12.8px; color: #6d7a63; line-height: 1.55; }
.lm-foot { padding: 22px; text-align: center; font-size: 12px; color: #93a285; border-top: 1px solid #e6ecdd; }

.blog-page { min-height: 100%; background: #f6f7f3; padding: 34px; }
.blog-page h1 { font-size: 24px; font-weight: 600; color: #33412c; margin-bottom: 4px; }
.blog-page .bl-sub { font-size: 13px; color: #8a977e; margin-bottom: 26px; }
.blog-post { background: #fff; border: 1px solid #e2e8d8; border-radius: 10px; padding: 20px 24px; margin-bottom: 16px; max-width: 720px; transition: box-shadow 0.15s, transform 0.15s; cursor: pointer; }
.blog-post:hover { box-shadow: 0 6px 20px rgba(60, 90, 40, 0.13); transform: translateY(-2px); }
.blog-post h2 { font-size: 17px; color: #41572f; }
.blog-post .bp-date { font-size: 11.5px; color: #9aa88d; margin: 4px 0 9px; }
.blog-post p { font-size: 13px; color: #5c6853; line-height: 1.6; }

.ffe-page { min-height: 100%; background: #fff; display: flex; flex-direction: column; align-items: center; padding-top: 13vh; }
.ffe-page svg { width: 74px; height: 74px; color: #b9c4ae; }
.ffe-page h2 { margin-top: 20px; font-size: 19px; color: #333; font-weight: 600; }
.ffe-page .fe-url { margin-top: 7px; font-size: 13px; color: #777; }
.ffe-page ul { margin: 20px 0 0; font-size: 13px; color: #555; line-height: 2; padding-left: 20px; list-style: disc; }
.ffe-page button { margin-top: 26px; }

.ffc-page { min-height: 100%; background: #fff; padding: 30px 36px; }
.ffc-warn { display: flex; gap: 15px; align-items: flex-start; max-width: 620px; }
.ffc-warn svg { width: 40px; height: 40px; color: #e0a83c; flex: none; }
.ffc-warn h2 { font-size: 17px; color: #333; }
.ffc-warn p { font-size: 13px; color: #666; margin-top: 7px; line-height: 1.6; }
.ffc-table { margin-top: 24px; width: 100%; max-width: 760px; border-collapse: collapse; font: 12.5px var(--font-mono); }
.ffc-table td { padding: 7px 10px; border-bottom: 1px solid #ececea; color: #444; }
.ffc-table td:first-child { color: #1a5fb4; width: 46%; }
.ffc-table tr:hover { background: #f7f9f3; }

.monitor-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.mon-graph { flex: none; padding: 12px 14px 8px; display: flex; gap: 16px; align-items: center; background: var(--bg-hi); border-bottom: 1px solid var(--border); }
.mon-graph canvas { width: 150px; height: 44px; background: var(--base); border: 1px solid var(--border); border-radius: 5px; }
.mon-graph .mg-label { font-size: 12px; color: var(--fg-mid); }
.mon-graph .mg-label b { display: block; font-size: 16px; color: var(--fg); font-weight: 600; }
.mon-table-wrap { flex: 1; overflow: auto; background: var(--base); }
.mon-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mon-table th { position: sticky; top: 0; text-align: left; padding: 6px 13px; font-size: 11.5px; font-weight: 600; color: var(--fg-mid); background: var(--bg-hi); border-bottom: 1px solid var(--border); z-index: 2; }
.mon-table td { padding: 5px 13px; border-bottom: 1px solid color-mix(in srgb, var(--border) 45%, transparent); font-variant-numeric: tabular-nums; }
.mon-table tr:hover td { background: var(--hover); }
.mon-table td.num { text-align: right; }
.mon-cpu { display: inline-block; width: 52px; height: 7px; border-radius: 3px; background: var(--hover-strong); overflow: hidden; vertical-align: middle; margin-right: 7px; }
.mon-cpu i { display: block; height: 100%; background: var(--accent); transition: width 0.5s; }

.welcome-body { flex: 1; display: flex; overflow: hidden; }
.wl-left {
  width: 200px;
  flex: none;
  background: linear-gradient(165deg, #7fae52, #4c7030);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff;
  padding: 20px;
}
.wl-left svg { width: 74px; height: 74px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25)); }
.wl-left .wll-t { font-size: 16px; font-weight: 600; text-align: center; line-height: 1.35; }
.wl-left .wll-s { font-size: 11.5px; opacity: 0.85; text-align: center; }
.wl-right { flex: 1; padding: 24px 26px; overflow-y: auto; }
.wl-right h2 { font-size: 18px; font-weight: 600; margin-bottom: 5px; }
.wl-right .wr-sub { font-size: 12.8px; color: var(--fg-mid); margin-bottom: 19px; }
.wl-step { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 9px; cursor: pointer; transition: all 0.13s; background: var(--base); }
.wl-step:hover { border-color: var(--accent); transform: translateX(3px); }
.wl-step .ws-check {
  width: 21px;
  height: 21px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.15s;
}
.wl-step.done .ws-check { background: var(--accent); border-color: var(--accent); }
.wl-step .ws-check svg { width: 12px; height: 12px; opacity: 0; }
.wl-step.done .ws-check svg { opacity: 1; }
.wl-step .ws-text { flex: 1; font-size: 13px; }
.wl-step.done .ws-text { color: var(--fg-dim); text-decoration: line-through; }
.wl-step .ws-go { color: var(--accent); font-size: 12px; font-weight: 600; }
.wl-actions { display: flex; gap: 9px; margin-top: 18px; }

.stub-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; padding: 30px; text-align: center; }
.stub-body svg { width: 70px; height: 70px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); }
.stub-body .st-name { font-size: 17px; font-weight: 600; }
.stub-body .st-ver { font-size: 12px; color: var(--fg-dim); }
.stub-body .st-note { font-size: 12.8px; color: var(--fg-mid); max-width: 330px; line-height: 1.55; }

.fc-body { display: flex; flex-direction: column; width: 620px; height: 430px; }
.fc-main { flex: 1; display: flex; min-height: 0; }
.fc-side { width: 158px; flex: none; border-right: 1px solid var(--border); background: var(--sidebar-bg); padding: 6px 0; overflow-y: auto; }
.fc-list { flex: 1; overflow-y: auto; background: var(--base); }
.fc-row { display: flex; align-items: center; gap: 9px; padding: 6px 13px; font-size: 12.8px; cursor: default; }
.fc-row svg { width: 18px; height: 18px; flex: none; }
.fc-row .fc-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-row .fc-meta { font-size: 11.3px; color: var(--fg-dim); }
.fc-row:hover { background: var(--hover); }
.fc-row.sel { background: var(--accent); color: var(--accent-fg); }
.fc-row.sel .fc-meta { color: color-mix(in srgb, var(--accent-fg) 78%, transparent); }
.fc-foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-top: 1px solid var(--border); background: var(--bg); }
.fc-foot .entry { flex: 1; }

.props-grid { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; font-size: 12.6px; }
.props-grid .pk { color: var(--fg-dim); }
.props-grid .pv { color: var(--fg); word-break: break-all; }
