/* ═══ 热点雷达 · Sneat 风格定制层 ═══
   加载顺序：vendor/sneat/core.css → vendor/sneat/icons.css → 本文件 */

/* ── 本地字体 Public Sans（离线可用）── */
@font-face{
  font-family:'Public Sans';font-style:normal;font-weight:300 800;font-display:swap;
  src:url(vendor/sneat/fonts/public-sans-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Public Sans';font-style:normal;font-weight:300 800;font-display:swap;
  src:url(vendor/sneat/fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ── 设计令牌：Sneat 底 + 雷达品牌色 ── */
:root{
  --bs-font-sans-serif:'Public Sans',-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
  --bs-body-font-size:1rem;              /* 16px，整体放大 */
  --bs-body-bg:#f4f5fa;
  --bs-body-color:#384551;
  --bs-heading-color:#22303e;
  --bs-border-radius:.5rem;
  --bs-card-border-radius:.625rem;
  --bs-card-spacer-x:1.5rem;
  --bs-card-spacer-y:1.375rem;
  --bs-menu-width:17.5rem;

  --navy-900:#101a3d; --navy-800:#15214b; --navy-700:#1c2b60;
  --blue:#47816d; --blue-deep:#356653; --blue-soft:#ededff;
  --red:#b96756; --red-soft:#f8eeea;
  --orange:#f59e0b; --orange-soft:#fff4e0;
  --green:#528568; --green-soft:#edf4ee;
  --purple:#bd7958; --purple-soft:#f7eee8;
  --cyan:#628c83; --cyan-soft:#edf3ef;
  --panel:#ffffff; --line:#e7e7ee; --text:#22303e; --sub:#8a94ad;
  --shadow:0 .125rem .375rem 0 rgba(34,48,62,.08);
  --shadow-lg:0 .5rem 1.75rem 0 rgba(34,48,62,.16);
  --radius:.625rem;
}
html{scroll-behavior:smooth}
body{
  font-size:1rem;line-height:1.55;letter-spacing:.01em;
  background:
    radial-gradient(1100px 480px at 88% -8%, #e4e4fb 0%, transparent 60%),
    radial-gradient(900px 420px at 30% -6%, #e9edfd 0%, transparent 55%),
    var(--bs-body-bg);
  background-attachment:fixed;
}
[v-cloak]{display:none}
button{font-family:inherit}

/* 滚动条：纳入配色 */
*{scrollbar-width:thin;scrollbar-color:#b9bcdf transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#b9bcdf,#9a9ed2);border-radius:8px;border:2px solid #f4f5fa}
::-webkit-scrollbar-thumb:hover{background:#7a7ec4}
.layout-menu ::-webkit-scrollbar-thumb{background:#33427c;border-color:#15214b}

/* ── 侧边菜单：深蓝定制（覆盖 Sneat 菜单变量）── */
.layout-menu{
  --bs-menu-bg:#29493d;
  --bs-menu-bg-rgb:21,33,75;
  --bs-menu-color:#aebadb;
  --bs-menu-color-rgb:174,186,219;
  --bs-menu-hover-bg:rgba(255,255,255,.07);
  --bs-menu-hover-color:#ffffff;
  --bs-menu-active-bg:#487c63;
  --bs-menu-active-color:#ffffff;
  --bs-menu-sub-active-bg:transparent;
  --bs-menu-sub-active-color:#ffffff;
  --bs-menu-header-color:#ffffff;
  --bs-menu-divider-color:rgba(255,255,255,.09);
  --bs-menu-box-shadow:4px 0 24px rgba(16,26,61,.18);
  --bs-menu-vertical-link-padding-y:.62rem;
  --bs-menu-vertical-link-padding-x:1.1rem;
  background:#29493d!important;
}
.layout-menu .menu-link{font-size:1rem;font-weight:500;border-radius:.5rem}
.layout-menu .menu-item.active>.menu-link{box-shadow:0 .375rem 1.125rem rgba(64,114,82,.22);font-weight:600}
.layout-menu .menu-icon{width:1.375rem;height:1.375rem;display:inline-flex;align-items:center;justify-content:center}
.layout-menu .menu-icon svg{width:1.25rem;height:1.25rem}
.layout-menu .nb {
  position: absolute; top: .28rem; right: .55rem; min-width: 1.25rem;
  padding: .08rem .3rem; border-radius: 999px; text-align: center;
  font-size: .7rem; font-weight: 750; background: #b85f4f; color: #fff;
}
.layout-menu .menu-link:has(.nb) { padding-right: 2.4rem; position: relative; }

.brand{padding:1.5rem 1rem 1rem;text-align:center}
.radar-logo{width:72px;height:72px;margin:0 auto .6rem;position:relative}
.radar-logo svg{width:100%;height:100%;display:block}
.radar-logo .sweep{transform-origin:32px 32px;animation:sweep 5.5s linear infinite}
.radar-logo .sat{animation:pulse 2.2s ease-in-out infinite}
@keyframes sweep{to{transform:rotate(360deg)}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.brand h1{font-size:1.375rem;font-weight:800;color:#fff;letter-spacing:.14em;margin:0}
.brand p{font-size:.8125rem;color:#8fa2d4;margin:.3rem 0 0;letter-spacing:.08em}

.side-ad {
  margin: auto 1.1rem 0; padding: .45rem; border: 1px solid #e7eae4;
  border-radius: .7rem; background: #f0f3ec; max-height: min(33vh, 16rem); overflow: auto;
}
.side-ad img { display: block; width: 100%; max-height: 9rem; object-fit: contain; border-radius: .45rem; }
.side-ad a { display: block; border-radius: .45rem; }
.side-ad p { margin: .4rem; color: #4f6255; font-size: .85rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.ver { padding: .9rem; text-align: center; font-size: .8125rem; color: #5d6fa5; }
.menu-inner + .ver { margin-top: auto; }
.app-brand .brand{flex:1;min-width:0}
.layout-menu .menu-inner{block-size:auto;overflow-y:auto;overflow-x:hidden}
.layout-menu .side-ad,.layout-menu .ver{flex-shrink:0}

/* ── 顶栏：Sneat detached navbar + 悬浮固定 ── */
.layout-navbar.navbar-detached{
  position:sticky;top:1rem;z-index:25;
  border-radius:.625rem;min-height:4.75rem;
  background:rgba(255,255,255,.88);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  box-shadow:var(--shadow);border:1px solid rgba(255,255,255,.7);
}
.layout-menu-toggle{cursor:pointer;color:var(--text)}
.layout-menu-toggle .bx{font-size:1.6rem}
.page-head{flex:1;min-width:0}
.page-head h2{font-size:1.5rem;font-weight:800;display:flex;align-items:center;gap:.6rem;letter-spacing:.02em;margin:0;line-height:1.3}
.page-head h2 .ph-ico{font-size:1.5rem}
.page-head p{font-size:.875rem;color:var(--sub);margin:.15rem 0 0}
.top-actions{display:flex;align-items:center;gap:.7rem}
.upd-pill{
  display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;color:#4b5875;
  background:#fff;border:1px solid var(--line);border-radius:999px;padding:.5rem 1rem;white-space:nowrap;
}
.upd-pill .dot{width:.55rem;height:.55rem;border-radius:50%;background:var(--green);animation:pulse 2s infinite}
.upd-pill .dot.off{background:var(--red);animation:none}
.upd-pill .dot.busy{background:var(--orange)}
.tbtn{
  display:inline-flex;align-items:center;gap:.45rem;border:1px solid var(--line);background:#fff;
  color:#4b5875;border-radius:999px;padding:.5rem 1.1rem;font-size:.875rem;font-weight:600;cursor:pointer;transition:.15s;
}
.tbtn:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-soft)}
.tbtn:disabled{opacity:.6;cursor:wait}
.tbtn svg{width:1rem;height:1rem}
.tbtn.icon{padding:.5rem .7rem;position:relative}
.tbtn .spin-ico{animation:sp .9s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
.avatar{
  width:2.5rem;height:2.5rem;border-radius:50%;display:grid;place-items:center;flex-shrink:0;
  background:#5b8068;color:#fff;font-weight:800;font-size:1.05rem;
  box-shadow:0 .25rem .75rem rgba(64,114,82,.20);cursor:default;
}

/* ── 内容区 ── */
.container-p-y{padding-top:1.75rem!important;padding-bottom:3rem!important}
.layout-page .container-xxl{max-width:1440px}

/* ── 统计卡 ── */
.stats-row{display:grid;grid-template-columns:repeat(5,1fr);gap:1.25rem;margin-bottom:1.5rem}
.stat{
  background:var(--panel);border-radius:var(--radius);
  padding:1.25rem 1.375rem 1.125rem;box-shadow:var(--shadow);position:relative;overflow:hidden;
  animation:rise .45s both;animation-delay:calc(var(--i)*70ms);transition:.18s;
}
.stat:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.stat-top{display:flex;align-items:center;gap:.7rem}
.stat-ico{width:2.5rem;height:2.5rem;border-radius:.625rem;display:grid;place-items:center;font-size:1.2rem;flex-shrink:0}
.stat-label{font-size:.9375rem;color:#5b6884;font-weight:600}
.stat-val{font-size:2.125rem;font-weight:800;letter-spacing:-.02em;margin-top:.65rem;font-variant-numeric:tabular-nums;line-height:1.15;color:var(--bs-heading-color)}
.stat-val.small{font-size:1.5rem;padding-top:.4rem}
.stat-sub{display:flex;align-items:center;gap:.5rem;margin-top:.45rem;font-size:.8125rem;color:var(--sub);min-height:1.3rem}

/* ── 面板（Sneat card 语言）── */
.panel{background:var(--panel);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:1.5rem;overflow:hidden}
.panel-hd{padding:1.125rem 1.5rem;border-bottom:1px solid #f0f0f6;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.panel-hd h3{font-size:1.125rem;font-weight:700;display:flex;align-items:center;gap:.55rem;margin:0;color:var(--bs-heading-color)}
.p-ico{font-size:1.15rem}
.panel-bd{padding:1.375rem 1.5rem}
.link-btn{border:0;background:transparent;color:var(--blue);font-size:.875rem;font-weight:600;cursor:pointer;padding:.25rem .15rem}
.link-btn:hover{text-decoration:underline}
.count-pill{background:var(--blue-soft);color:var(--blue);font-size:.8125rem;font-weight:700;border-radius:999px;padding:.15rem .7rem;margin-left:.35rem}

.mid-row{display:grid;grid-template-columns:1.9fr 1fr;gap:1.5rem;margin-bottom:1.5rem}
.mid-row .panel{margin-bottom:0}

/* 趋势图 */
.chart-wrap{position:relative}
.legend{display:flex;gap:1.1rem;flex-wrap:wrap;justify-content:flex-end;margin-bottom:.5rem;font-size:.8125rem;color:#5b6884}
.legend i{width:.55rem;height:.55rem;border-radius:50%;display:inline-block;margin-right:.35rem}
.heat-svg{width:100%;height:auto;display:block;touch-action:pan-y}
.heat-svg .axis{font-size:.75rem;fill:#9aa5bf}
.chart-tip{
  position:absolute;top:2rem;transform:translateX(-50%);pointer-events:none;
  background:rgba(21,33,75,.94);color:#fff;border-radius:.625rem;padding:.65rem .85rem;font-size:.8125rem;
  box-shadow:0 .5rem 1.375rem rgba(16,26,61,.35);min-width:8rem;z-index:5;
}
.chart-tip .tip-t{font-weight:700;margin-bottom:.35rem;color:#c3c5ff}
.chart-tip .tip-r{display:flex;align-items:center;gap:.4rem;margin-top:.25rem}
.chart-tip .tip-r i{width:.45rem;height:.45rem;border-radius:50%;flex-shrink:0}
.chart-tip .tip-r b{margin-left:auto;font-variant-numeric:tabular-nums}

/* 排行 */
.rank-list{padding:.5rem 1.5rem .85rem}
.rank-row{display:flex;align-items:center;gap:.8rem;padding:.8rem 0;border-bottom:1px dashed #eef0f6;cursor:pointer;transition:.15s}
.rank-row:last-child{border-bottom:0}
.rank-row:hover .rank-title{color:var(--blue)}
.rank-badge{width:1.55rem;height:1.55rem;border-radius:.45rem;display:grid;place-items:center;font-size:.8125rem;font-weight:800;color:#fff;flex-shrink:0;background:#c3cde0}
.rank-badge.r1{background:linear-gradient(135deg,#b96756,#cb8270);box-shadow:0 .2rem .5rem rgba(181,96,78,.22)}
.rank-badge.r2{background:linear-gradient(135deg,#f59e0b,#fbbf24);box-shadow:0 .2rem .5rem rgba(245,158,11,.4)}
.rank-badge.r3{background:linear-gradient(135deg,#47816d,#729178);box-shadow:0 .2rem .5rem rgba(64,114,82,.22)}
.rank-ico{width:2.4rem;height:2.4rem;border-radius:.55rem;display:grid;place-items:center;font-size:1.15rem;flex-shrink:0}
.rank-title{flex:1;font-size:.9375rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:.15s}
.rank-heat{font-size:.875rem;font-weight:700;color:var(--red);white-space:nowrap;font-variant-numeric:tabular-nums}

/* chips / 筛选 */
.chips{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}
.chip{
  border:1px solid var(--line);background:#fff;border-radius:999px;padding:.5rem 1.05rem;
  cursor:pointer;font-size:.875rem;color:#5b6884;font-weight:600;display:inline-flex;align-items:center;gap:.45rem;transition:.15s;
}
.chip:hover{border-color:var(--blue);color:var(--blue)}
.chip.active{background:#487c63;border-color:transparent;color:#fff;box-shadow:0 .25rem .75rem rgba(64,114,82,.18)}
.chip .cdot{width:.5rem;height:.5rem;border-radius:50%;display:inline-block}
.chip.active .cdot{background:#fff!important}
.sort-sel{
  border:1px solid var(--line);border-radius:.55rem;padding:.48rem .75rem;font-size:.875rem;font-weight:600;
  background:#fff;color:var(--text);cursor:pointer;
}

/* 热点卡片 */
.hgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.hcard{
  background:#fff;border:1px solid #ececf4;border-radius:.75rem;padding:1.125rem;
  display:flex;gap:.9rem;box-shadow:var(--shadow);cursor:pointer;position:relative;
  transition:.18s;animation:rise .4s both;animation-delay:calc(var(--i,0)*45ms);
}
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
.hcard:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:#dcdcf0}
.hcard.adopted{background:linear-gradient(180deg,#f2fcf6 0%,#fff 46%);border-color:#bfe8d2}
.heat-pill{
  position:absolute;top:.85rem;right:.85rem;z-index:2;
  background:var(--red-soft);color:var(--red);font-size:.8125rem;font-weight:800;
  border-radius:999px;padding:.2rem .7rem;font-variant-numeric:tabular-nums;
}
.heat-pill.big{font-size:.9375rem;padding:.35rem 1rem;top:1rem;right:1rem;background:rgba(255,255,255,.92)}
.hthumb{width:6.25rem;height:6.25rem;border-radius:.625rem;overflow:hidden;flex-shrink:0;align-self:flex-start}
.hthumb img{width:100%;height:100%;object-fit:cover;display:block;transition:.3s}
.hcard:hover .hthumb img{transform:scale(1.07)}
.thumb-fb{width:100%;height:100%;display:grid;place-items:center;font-size:2.2rem}
.hbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:.5rem}
.htitle{
  font-size:.9688rem;font-weight:700;line-height:1.5;margin-right:3.75rem;color:var(--bs-heading-color);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9rem;
}
.htags{display:flex;gap:.35rem;flex-wrap:wrap}
.ttag{padding:.15rem .55rem;border-radius:.375rem;font-size:.75rem;font-weight:600;white-space:nowrap}
.pf-tag{background:#f1f2f7;color:#5b6884}
.hfoot{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-top:auto}
.hmeta{font-size:.8125rem;color:var(--sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.detail-btn{
  border:0;background:var(--blue);color:#fff;font-size:.8125rem;font-weight:600;
  padding:.45rem .95rem;border-radius:.45rem;cursor:pointer;white-space:nowrap;transition:.15s;flex-shrink:0;
}
.detail-btn:hover{background:var(--blue-deep);box-shadow:0 .25rem .75rem rgba(64,114,82,.20)}
.hactions{display:flex;gap:.45rem;border-top:1px dashed var(--line);padding-top:.65rem}
.hactions button,.hactions a,.hfoot .adopt-btn{
  flex:1;text-align:center;border:1px solid var(--line);background:#fff;color:#5b6884;
  padding:.4rem .45rem;border-radius:.45rem;cursor:pointer;font-size:.8125rem;font-weight:600;text-decoration:none;transition:.15s;white-space:nowrap;
}
.hactions button:hover,.hactions a:hover,.hfoot .adopt-btn:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-soft)}
.adopt-btn[aria-pressed="true"]{background:#eef1ed;border-color:#dfe4dd;color:#526157}
.rec-more{text-align:center;margin-top:1.5rem}
.list-info{text-align:center;color:var(--sub);font-size:.875rem;margin-top:1.1rem}

/* 按钮 / 表单 */
.btn{
  border:1px solid var(--line);background:#fff;color:var(--text);padding:.55rem 1.2rem;border-radius:.5rem;
  cursor:pointer;font-size:.9375rem;font-weight:600;display:inline-flex;align-items:center;gap:.45rem;transition:.15s;line-height:1.4;
}
.btn:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-soft)}
.btn.primary{background:#487c63;color:#fff;border-color:transparent;box-shadow:0 .25rem .875rem rgba(64,114,82,.18)}
.btn.primary:hover{background:linear-gradient(90deg,#356653,#47816d);color:#fff}
.btn.ghost{background:#fff;color:var(--blue);border-color:#d5d6f8}
.btn.ghost:hover{background:var(--blue-soft)}
.btn.danger{color:var(--red)}
.btn.danger:hover{border-color:var(--red);background:var(--red-soft)}
.btn.small{padding:.3rem .85rem;font-size:.8125rem;border-radius:.4rem}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn.adopt-on{background:var(--green);border-color:var(--green);color:#fff}
.btn.adopt-on:hover{background:#1ba854;color:#fff}
.search-box{display:inline-flex;align-items:center;gap:.5rem;border:1px solid var(--line);border-radius:999px;padding:.5rem 1rem;background:#fff;transition:.15s}
.search-box:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(64,114,82,.10)}
.search-box svg{width:1rem;height:1rem;color:var(--sub);flex-shrink:0}
.search-box input{border:0;outline:none;font-size:.9375rem;width:11.5rem;background:transparent;color:var(--text)}
.search-box .clr{border:0;background:transparent;color:var(--sub);cursor:pointer;font-size:1.05rem;line-height:1;padding:0 .15rem}
.search-box .clr:hover{color:var(--red)}

/* 榜单页工具条 */
.rank-toolbar{gap:.9rem}
.tb-left{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap}
.filter-bd{display:flex;flex-direction:column;gap:.75rem;padding:1rem 1.5rem}
.rank-tag-filter{padding-top:.75rem;border-top:1px solid var(--line)}
.rank-tag-filter h3{margin:0 0 .55rem;font-size:.875rem;color:var(--sub)}

.tier-dot{display:inline-block;width:.55rem;height:.55rem;border-radius:50%;flex-shrink:0}

/* 收藏页 */
.hint-bd{font-size:.875rem;color:var(--sub);padding:.95rem 1.5rem;line-height:1.7}
.orphan-list{margin-top:1.5rem}
.orphan-row{display:flex;align-items:center;gap:.9rem;padding:.75rem 0;border-bottom:1px dashed #eef0f6}
.orphan-row:last-child{border-bottom:0}
.o-title{flex:1;font-size:.9375rem;font-weight:600}
.o-time{font-size:.8125rem;color:var(--sub);white-space:nowrap}

/* 配置页 */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
.field{margin-bottom:1.15rem}
.field label{display:block;font-size:.9375rem;font-weight:700;margin-bottom:.45rem;color:var(--bs-heading-color)}
.field .hint{font-size:.8125rem;color:var(--sub);margin-top:.4rem;line-height:1.6}
.field input,.field select,.field textarea{
  width:100%;border:1px solid var(--line);border-radius:.5rem;padding:.6rem .95rem;font-size:.9375rem;
  background:#fff;color:var(--text);outline:none;font-family:inherit;transition:.15s;
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(64,114,82,.10)}
.field textarea{resize:vertical;min-height:15rem;font-family:ui-monospace,Consolas,monospace;font-size:.875rem;line-height:1.75}
.switch{display:flex;align-items:center;gap:.7rem;cursor:pointer;font-weight:600;font-size:.9375rem}
.switch input{width:1.1rem;height:1.1rem;accent-color:var(--blue)}
.sec-title{font-size:.9375rem;font-weight:700;color:var(--blue);margin:.6rem 0 1.1rem;padding-bottom:.6rem;border-bottom:1px solid var(--line)}
.weight-row{display:flex;align-items:center;gap:.9rem;margin-bottom:.95rem}
.weight-row .n{width:7.5rem;font-size:.875rem;color:#5b6884;font-weight:600}
.weight-row input[type=range]{flex:1;accent-color:var(--blue)}
.weight-row .val{width:3rem;text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.src-list{border:1px solid var(--line);border-radius:.625rem;overflow:hidden}
.src-row{display:flex;align-items:center;gap:.7rem;padding:.7rem .95rem;border-bottom:1px solid var(--line);flex-wrap:wrap}
.src-row:last-child{border-bottom:0}
.src-row:nth-child(odd){background:#fafafd}
.src-row input[type=text],.src-row select{border:1px solid var(--line);border-radius:.45rem;padding:.45rem .75rem;font-size:.875rem;outline:none;background:#fff;color:var(--text)}
.src-row input[type=text]:focus,.src-row select:focus{border-color:var(--blue)}

/* 详情抽屉 */
.scrim{position:fixed;inset:0;background:rgba(16,26,61,.45);z-index:1110;opacity:0;pointer-events:none;transition:.25s}
.scrim.show{opacity:1;pointer-events:auto}
.drawer{
  position:fixed;top:0;right:0;bottom:0;width:31rem;max-width:94vw;background:#fff;z-index:1120;
  box-shadow:-.875rem 0 2.75rem rgba(16,26,61,.22);transform:translateX(102%);transition:transform .3s cubic-bezier(.2,.8,.25,1);
  overflow-y:auto;
}
.drawer.open{transform:translateX(0)}
.d-banner{height:11.5rem;position:relative;overflow:hidden;background:var(--navy-800)}
.d-banner img{width:100%;height:100%;object-fit:cover;display:block}
.d-banner-fb{width:100%;height:100%;display:grid;place-items:center;font-size:3.5rem}
.d-banner-ov{position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,26,61,.05) 30%,rgba(16,26,61,.62) 100%)}
.d-close{
  position:absolute;top:.85rem;left:.85rem;width:2.2rem;height:2.2rem;border-radius:50%;border:0;
  background:rgba(255,255,255,.92);color:var(--text);font-size:1.2rem;cursor:pointer;line-height:1;z-index:2;transition:.15s;
}
.d-close:hover{background:#fff;transform:rotate(90deg)}
.d-type{position:absolute;left:1.15rem;bottom:1rem;z-index:2;font-size:.8125rem;font-weight:700;border-radius:999px;padding:.3rem .9rem}
.d-body{padding:1.5rem 1.6rem 2.25rem}
.d-title{font-size:1.25rem;font-weight:800;line-height:1.5;margin-bottom:.9rem;color:var(--bs-heading-color)}
.d-meta{display:flex;gap:.65rem;flex-wrap:wrap;align-items:center;font-size:.875rem;color:var(--sub);margin-bottom:.5rem}
.d-sec{font-size:.9375rem;font-weight:700;color:var(--blue);margin:1.35rem 0 .75rem;display:flex;align-items:center;gap:.45rem}
.d-pfs{display:flex;flex-wrap:wrap;gap:.35rem}
.suggest-box{
  background:linear-gradient(135deg,#ededff,#f7eee8);border-left:3px solid var(--blue);
  border-radius:.625rem;padding:.95rem 1.1rem;font-size:.9375rem;line-height:1.75;color:#3a3d8f;
}
.bd-row{display:flex;align-items:center;gap:.75rem;margin-bottom:.7rem}
.bd-name{width:5.2rem;font-size:.875rem;color:#5b6884;font-weight:600;flex-shrink:0}
.bd-track{flex:1;height:.55rem;background:#f1f2f7;border-radius:.275rem;overflow:hidden}
.bd-track i{display:block;height:100%;border-radius:.275rem;transition:width .5s}
.bd-val{width:2.4rem;text-align:right;font-size:.875rem;font-weight:700;font-variant-numeric:tabular-nums}
.d-actions{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-top:1.6rem}
.d-actions .btn{justify-content:center}

/* 弹窗 / 提示 */
.mask{position:fixed;inset:0;background:rgba(16,26,61,.5);z-index:1130;display:grid;place-items:center;padding:1.25rem}
.radar-dialog{background:#fff;border-radius:.875rem;width:100%;max-width:46rem;max-height:84vh;overflow:auto;box-shadow:0 1.5rem 4.375rem rgba(16,26,61,.3)}
.modal-hd{padding:1.15rem 1.5rem;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:.9rem;position:sticky;top:0;background:#fff;z-index:2}
.modal-hd h3{font-size:1.05rem;font-weight:700;line-height:1.5;margin:0}
.modal-bd{padding:1.375rem 1.5rem}
.close{border:0;background:#f1f2f7;width:2.1rem;height:2.1rem;border-radius:50%;font-size:1.15rem;cursor:pointer;color:var(--sub);line-height:1;flex-shrink:0}
.close:hover{background:var(--red-soft);color:var(--red)}
.toast{
  position:fixed;top:6.5rem;right:1.75rem;z-index:1140;padding:.85rem 1.4rem;border-radius:.625rem;color:#fff;
  font-size:.9375rem;font-weight:600;box-shadow:0 .625rem 1.875rem rgba(16,26,61,.25);animation:slide .25s;max-width:22rem;
}
.toast.ok{background:linear-gradient(90deg,#528568,#528568)}
.toast.err{background:linear-gradient(90deg,#b96756,#e11d48)}
@keyframes slide{from{transform:translateX(24px);opacity:0}to{transform:translateX(0);opacity:1}}
.loading{text-align:center;padding:3rem;color:var(--sub);font-size:.9375rem}
.spin{display:inline-block;width:1.05rem;height:1.05rem;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:sp .8s linear infinite;vertical-align:-.2rem}
.loading .spin,.empty .spin{border-color:#d5d6f0;border-top-color:var(--blue)}
.empty{padding:3.5rem 1.5rem;text-align:center;color:var(--sub)}
.empty .ico{font-size:2.9rem;opacity:.4;margin-bottom:1rem}
.empty p{max-width:27rem;margin:0 auto 1.25rem;line-height:1.85;font-size:.9375rem}
.empty.small{padding:1.9rem 1rem;font-size:.875rem}

/* 页面切换动画 */
.page-anim{animation:pageIn .28s ease both}
@keyframes pageIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* 移动端菜单展开时锁滚动 */
body:has(.layout-menu-expanded){overflow:hidden}

/* ── 响应式 ── */
@media(max-width:1399.98px){
  .stats-row{grid-template-columns:repeat(3,1fr)}
  .hgrid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:1199.98px){
  .page-head p{display:none}
  .page-head h2{font-size:1.25rem}
  .upd-pill .upd-txt{display:none}
  th{top:5.4rem}
}
@media(max-width:1023.98px){
  .mid-row{grid-template-columns:1fr}
}
@media(max-width:767.98px){
  .layout-navbar.navbar-detached{top:.6rem;min-height:4rem;padding-inline:1rem}
  .container-p-y{padding-top:1.25rem!important}
  .stats-row{grid-template-columns:repeat(2,1fr);gap:.9rem}
  .stat-val{font-size:1.75rem}
  .hgrid{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .drawer{width:100vw;max-width:100vw}
  .bell-pop{position:fixed;right:.85rem;left:.85rem;width:auto;top:5.2rem}
  .avatar{display:none}
  .search-box input{width:8rem}
  .d-actions{grid-template-columns:1fr}
  .panel-hd{padding:1rem 1.15rem}
  .panel-bd{padding:1.15rem}
  .toast{right:.85rem;left:.85rem;max-width:none}
}
@media(max-width:479.98px){
  .top-actions{gap:.45rem}
  .tbtn{padding:.45rem .8rem}
}
#recommend{scroll-margin-top:6.5rem}
.hd-sub{font-size:.8125rem;color:var(--sub);font-weight:500}

/* ── 定时采集状态 ── */
.sched-status{
  display:flex;flex-wrap:wrap;gap:1.25rem;margin-top:.35rem;padding:1rem 1.25rem;
  background:linear-gradient(135deg,#f8f8fe,#f3f6fc);border:1px solid var(--line);border-radius:.625rem;
}
.ss-item{display:flex;flex-direction:column;gap:.3rem;flex:1;min-width:11rem}
.ss-k{font-size:.78rem;color:var(--sub);font-weight:600;letter-spacing:.02em}
.ss-v{font-size:.95rem;font-weight:700;color:var(--text)}
.ss-v.on{color:#528568}
.ss-v.off{color:#94a3b8}
@media(max-width:767.98px){
  .tags-panel .panel-hd{align-items:flex-start;flex-direction:column;gap:.35rem}
  .ss-item{min-width:100%}
}

/* 清爽的鼠尾草绿与纸白配色 */
:root {
  --bs-body-bg: #f5f6f2;
  --bs-body-color: #3e4942;
  --bs-heading-color: #29362f;
  --navy-900: #edf1eb;
  --navy-800: #edf1eb;
  --navy-700: #edf1eb;
  --blue: #47816d;
  --blue-deep: #356653;
  --blue-soft: #edf4ef;
  --red: #ba6957;
  --red-soft: #f8eeeb;
  --orange: #bc8747;
  --orange-soft: #f7f0e5;
  --green: #53886a;
  --green-soft: #edf4ee;
  --purple: #817b68;
  --purple-soft: #f0efe9;
  --cyan: #618687;
  --cyan-soft: #edf3f2;
  --panel: #fff;
  --line: #e5e8e0;
  --text: #303b34;
  --sub: #748078;
  --shadow: 0 2px 10px rgba(54, 70, 57, .045);
  --shadow-lg: 0 9px 26px rgba(54, 70, 57, .09);
  --radius: .85rem;
  --bs-card-border-radius: .85rem;
}
body { background: #f5f6f2; color: #3e4942; }
* { scrollbar-color: #ced6ce transparent; }
::-webkit-scrollbar-thumb { background: #ced6ce; border-color: #f5f6f2; }
::-webkit-scrollbar-thumb:hover { background: #acb9ad; }
.layout-menu {
  --bs-menu-bg: #fbfcf9;
  --bs-menu-bg-rgb: 251,252,249;
  --bs-menu-color: #68736b;
  --bs-menu-color-rgb: 104,115,107;
  --bs-menu-hover-bg: #f0f3ee;
  --bs-menu-hover-color: #30493b;
  --bs-menu-active-bg: #edf3ec;
  --bs-menu-active-color: #38654e;
  --bs-menu-sub-active-bg: #f3f5f0;
  --bs-menu-sub-active-color: #38654e;
  --bs-menu-header-color: #8a938a;
  --bs-menu-divider-color: rgba(67,87,69,.12);
  --bs-menu-box-shadow: 3px 0 16px rgba(47,62,49,.045);
  background: #fbfcf9 !important;
  border-right: 1px solid #e7eae4;
}
.layout-menu .menu-item.active > .menu-link { box-shadow: inset 3px 0 #56816a; font-weight: 650; }
.brand h1 { color: #35473c; }
.brand p { color: #7c8d80; }
.radar-logo svg { filter: saturate(.55); }
.ver { color: #819084; }
.layout-navbar.navbar-detached { background: rgba(255,255,253,.95); border-color: #e7eae4; backdrop-filter: blur(10px); }
.page-head h2 { color: #2e3c33; }
.upd-pill, .tbtn { background: #fff; color: #526157; border-color: #e3e8df; }
.upd-pill .dot { background: #5c9471; }
.top-actions .tbtn:hover, .tbtn:hover { border-color: #9bb9a3; color: #43735a; background: #f2f6f1; }
.avatar { background: #e8efe7; color: #43644c; box-shadow: none; }
.panel, .stat, .hcard { border: 1px solid #e8ebe4; box-shadow: 0 2px 8px rgba(51,67,54,.035); }
.panel-hd { border-color: #edf0e9; }
.panel-bd { color: #47544b; }
.stat:hover, .hcard:hover { box-shadow: 0 8px 20px rgba(56,74,59,.08); border-color: #d6e0d4; }
.stat-label, .chip, .weight-row .n { color: #58645b; }
.chip.active, .btn.primary, .btn.primary:hover {
  background: #e9f1e8;
  border-color: #d8e6d8;
  color: #376149;
  box-shadow: none;
}
.btn.primary:hover, .chip:hover { background: #f1f5ef; border-color: #a9c3ac; color: #375f47; }
.btn.ghost { color: #497158; }
.rank-badge.r1 { background: #bf7567; box-shadow: none; }
.rank-badge.r2 { background: #c19758; box-shadow: none; }
.rank-badge.r3 { background: #79967a; box-shadow: none; }
.hcard.adopted { background: #f5f8f3; border-color: #d6e7d5; }
.rank-heat { color: #a96b56; }
.scope-switch { flex-shrink: 0; padding-right: .85rem; }
.source-preview { background: #edf4ed; border-color: #dce9dd; color: #446d4d; }
.preview-note { color: #758077; font-size: .86rem; }
.preview-list { max-height: 58vh; overflow-y: auto; padding-left: 2rem; }
.preview-list li { padding: .52rem .35rem; border-bottom: 1px solid #edf0ea; }
.preview-list a { color: #486c55; text-decoration: none; }
.preview-list a:hover { text-decoration: underline; }
.preview-rank { display: inline-block; width: 3.1rem; color: #819084; font-variant-numeric: tabular-nums; }
.platform-preview { max-width: 720px; }
.hint { color: #748078; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(78,128,99,.12); }
.weight-row input[type=range], .switch input { accent-color: #56826a; }
.src-row:nth-child(odd) { background: #fafbf8; }
.sched-status { background: #f5f7f2; }
.toast.ok { background: #56866a; }
.chart-wrap .legend span { color: #647168; }
.settings-layout { display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.settings-nav { position: sticky; top: 7rem; display: flex; flex-direction: column; gap: .35rem; padding: .55rem; border: 1px solid #e7eae4; border-radius: .85rem; background: #fbfcf9; }
.settings-nav button { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .76rem .85rem; border: 0; border-radius: .55rem; background: transparent; color: #5f6c62; text-align: left; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.settings-nav button:hover { background: #f0f4ee; color: #3b6347; }
.settings-nav button.active { background: #e9f1e8; color: #365f44; }
.settings-nav-ico { width: 1.45rem; text-align: center; flex: 0 0 1.45rem; }
.settings-content { min-width: 0; }
.settings-content > .panel { margin-bottom: 1rem; }
.settings-nav { overflow: visible; }
.settings-nav button { flex-wrap: nowrap; }
.trend-panel-head { justify-content: space-between; }
.trend-panel-head > div:first-child { min-width: 0; }
.trend-panel-head .hd-sub { display: block; margin-top: .35rem; }
.trend-panel-head .seg {
  display: inline-flex; flex-wrap: wrap; gap: .15rem; padding: .2rem;
  border-radius: .5rem; background: var(--blue-soft);
}
.trend-panel-head .seg button {
  border: 0; border-radius: .4rem; padding: .45rem .75rem; white-space: nowrap;
  background: transparent; color: var(--sub); font-size: .875rem; font-weight: 600; cursor: pointer;
}
.trend-panel-head .seg button:hover { color: var(--blue-deep); }
.trend-panel-head .seg button[aria-pressed="true"] {
  background: var(--blue-deep); color: #fff; box-shadow: 0 .15rem .45rem rgba(64,114,82,.2);
}
@media(max-width:767.98px) {
  .settings-layout { grid-template-columns: 7.5rem minmax(0, 1fr); gap: .55rem; }
  .settings-nav { position: sticky; top: 5rem; flex-direction: column; padding: .35rem; }
  .settings-nav button { width: 100%; min-width: 0; flex: 0 0 auto; gap: .4rem; padding: .65rem .42rem; font-size: .77rem; }
  .settings-nav-ico { width: 1.1rem; flex-basis: 1.1rem; }
  .settings-content > .panel .panel-hd { padding: .75rem; }
  .settings-content > .panel .panel-bd { padding: .85rem; }
  .settings-content .form-grid { grid-template-columns: 1fr; gap: .55rem; }
}
@media (max-width: 1199.98px) {
  .scope-switch { padding-right: .25rem; }
}
@media (max-width: 767.98px) {
  .top-actions { gap: .4rem; }
  .page-head { flex-basis: 40%; }
  .layout-navbar.navbar-detached { flex-wrap: wrap; row-gap: .35rem; }
  .scope-switch { margin-left: auto; }
  .top-actions { margin-left: auto; }
  .trend-panel-head { justify-content: space-between; }
}

/* Shared dropdowns */
.select-menu { position: relative; display: inline-flex; min-width: 9rem; }
.select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  min-height: 2.5rem; width: 100%; padding: .48rem .75rem;
  border: 1px solid #dbe4dc; border-radius: .55rem; background: #fff;
  color: #35473c; font: inherit; font-size: .88rem; font-weight: 600;
  text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.select-trigger svg { width: .85rem; height: .85rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.select-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.select-trigger:hover, .select-trigger[aria-expanded="true"] { border-color: #9db5a3; }
.select-trigger:focus-visible { outline: none; border-color: #638b70; box-shadow: 0 0 0 3px #e3eee5; }
.select-options {
  position: absolute; z-index: 1300; top: calc(100% + .3rem); left: 0; min-width: 100%;
  padding: .3rem; border: 1px solid #dce5dc; border-radius: .55rem;
  background: #fff; box-shadow: 0 .65rem 1.7rem rgba(40,60,46,.15);
}
.select-option { display: block; width: 100%; padding: .52rem .65rem; border: 0; border-radius: .35rem; background: transparent; color: #38483d; font: inherit; font-size: .87rem; text-align: left; white-space: nowrap; cursor: pointer; }
.select-option:hover, .select-option.active { background: #f1f5f0; color: #315d42; }
.select-option.selected { color: #315d42; font-weight: 700; }
.scope-switch .select-menu { min-width: 8rem; }
.scope-switch .select-trigger { border-radius: 999px; }
.src-row .select-menu { min-width: 7rem; flex: 0 0 auto; }

.home-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(14rem, 23%, 16rem);
  gap: 1.5rem;
  align-items: start;
}
#recommend { min-width: 0; container-type: inline-size; }
#recommend .hgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
#recommend .hcard { display: grid; grid-template: 3.5rem 1fr auto / 3.5rem minmax(0, 1fr); gap: .35rem .65rem; padding: .9rem; }
#recommend .hthumb { width: 3.5rem; height: 3.5rem; grid-area: 1 / 1; }
#recommend .hbody { display: contents; }
#recommend .heat-pill { position: static; grid-area: 2 / 1; align-self: start; justify-self: center; padding-inline: .35rem; white-space: nowrap; }
#recommend .htitle { grid-area: 1 / 2; margin-right: 0; }
#recommend .htags { grid-area: 2 / 2; align-content: start; }
#recommend .hfoot { grid-area: 3 / 1 / auto / -1; gap: .45rem; padding-top: .25rem; }
#recommend .adopt-btn { flex: 0 0 auto; margin-inline-start: auto; padding-inline: .55rem; }
#recommend .detail-btn { padding-inline: .65rem; }
.topic-list { margin: 0; padding: .35rem .65rem; list-style: none; }
.topic-list.expanded { max-height: 44rem; overflow-y: auto; }
.topic-row { display: flex; align-items: center; gap: .2rem; border-radius: .45rem; }
.topic-row + .topic-row { margin-top: .1rem; }
.topic-row:hover { background: #f4f7f2; }
.topic-row.selected { background: #e9f1e8; }
.topic-row.selected .topic-name { color: #315f43; font-weight: 750; }
.topic-filter {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .55rem; text-align: left;
  background: transparent; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: .42rem .4rem;
}
.topic-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.topic-count { color: var(--sub); white-space: nowrap; font-size: .74rem; font-variant-numeric: tabular-nums; }
.topic-search { display: grid; place-items: center; width: 2rem; height: 2rem; flex: 0 0 2rem; border-radius: .4rem; color: #537360; }
.topic-search:hover { background: #dfece1; color: #315f43; }
.topic-search svg { width: 1.1rem; height: 1.1rem; }
.topic-footer { border-top: 1px solid var(--line); padding: .7rem .9rem; text-align: center; }
.topic-list .rank-badge, .platform-entries .rank-badge { background: #edf0ed; color: #4e5c54; font-weight: 700; }
.topic-list .rank-badge.r1, .platform-entries .rank-badge.r1 { background: #f7e4de; color: #a04031; }
.topic-list .rank-badge.r2, .platform-entries .rank-badge.r2 { background: #faecd9; color: #895b25; }
.topic-list .rank-badge.r3, .platform-entries .rank-badge.r3 { background: #f3efdb; color: #776026; }

.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.platform-board { display: flex; flex-direction: column; min-width: 0; height: 24rem; margin: 0; }
.platform-head, .platform-footer { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .85rem 1rem; }
.platform-head { border-bottom: 1px solid #edf0e9; }
.platform-head h3 { margin: 0; font-size: 1rem; font-weight: 750; overflow-wrap: anywhere; }
.board-kind { font-size: .75rem; color: #486f59; background: #edf3ed; border-radius: .35rem; padding: .24rem .45rem; white-space: nowrap; }
.platform-entries { overflow-y: auto; flex: 1; min-height: 0; list-style: none; margin: 0; padding: .35rem 1rem; scrollbar-width: thin; }
.platform-entries li { display: flex; align-items: start; gap: .65rem; padding: .52rem 0; font-size: .89rem; line-height: 1.45; overflow-wrap: anywhere; }
.platform-entries li + li { border-top: 1px solid #f1f3ef; }
.platform-entries a { color: var(--text); text-decoration: none; }
.platform-entries a:hover { color: #38644b; text-decoration: underline; }
.platform-empty { flex: 1; display: grid; place-items: center; padding: 1rem; color: var(--sub); font-size: .86rem; }
.platform-footer { border-top: 1px solid #edf0e9; padding-block: .68rem; font-size: .75rem; color: var(--sub); }
.platform-stale { color: #a15d48; }

@media (min-width: 1560px) { .platform-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 47rem) { #recommend .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 31rem) { #recommend .hgrid { grid-template-columns: 1fr; } }
@media (max-width: 1050px) {
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-content-grid { gap: 1rem; }
}
@media (max-width: 767.98px) {
  .home-content-grid { grid-template-columns: 1fr; }
  .home-content-grid .tags-panel { grid-row: 1; margin-bottom: 0; }
  .topic-list, .topic-list.expanded { max-height: 18rem; overflow-y: auto; }
  #app .scope-switch select { max-width: 8rem; }
}
@media (max-width: 550px) { .platform-grid { grid-template-columns: 1fr; } }

#recommend .rec-hd { flex-wrap: nowrap; align-items: center; gap: .5rem; }
#recommend .rec-hd h3 { flex: 0 1 auto; white-space: nowrap; }
#recommend .rec-hd select { flex-shrink: 0; margin-left: auto; }
.rec-filters { padding: .75rem 1.5rem 0; }
.account-action { white-space: nowrap; }
.platform-toolbar { display: flex; justify-content: flex-end; padding: 0 .1rem .85rem; }
.platform-entry-title { min-width: 0; }
.resource-mark {
  display: inline-block; margin-left: .35rem; padding: .08rem .36rem; vertical-align: baseline;
  border-radius: .3rem; color: #315a42; background: #e7f0e8; font-size: .7rem; font-weight: 700;
}
.login-panel { width: min(calc(100% - 2rem), 26rem); margin: auto; padding: 0; border: 0; }
.login-panel::backdrop { background: rgba(16,26,61,.5); }
.form-error { color: #a34336; }
.settings-form-section { padding-top: 1rem; border-top: 1px solid var(--line); }
.settings-form-section h4 { font-size: 1rem; margin-bottom: .95rem; }
.field .ad-copy-input { min-height: 5rem; font-family: inherit; }
.ad-preview { display: flex; align-items: start; gap: .75rem; margin-bottom: 1rem; }
.ad-preview img { width: min(55%, 14rem); max-height: 8rem; object-fit: contain; border-radius: .45rem; }
.account-menu { position: relative; flex: 0 0 auto; }
.account-menu .avatar { border: 0; cursor: pointer; font: inherit; font-weight: 750; }
.account-pop { position: absolute; z-index: 1150; top: calc(100% + .5rem); right: 0; min-width: 10.5rem; padding: .35rem; border: 1px solid #e1e8e1; border-radius: .55rem; background: #fff; box-shadow: 0 .65rem 1.7rem rgba(40,60,46,.15); }
.account-pop button { display: block; width: 100%; padding: .58rem .7rem; border: 0; border-radius: .35rem; background: transparent; color: #38483d; text-align: left; font: inherit; font-size: .86rem; cursor: pointer; }
.account-pop button:hover { background: #f1f5f0; color: #315d42; }
.favorites-nav-label { position: relative; flex: 0 0 auto; white-space: nowrap; }
.nav-fav-badge {
  position: absolute; top: -.3rem; left: calc(100% + .28rem); min-width: 1.05rem; padding: 0 .25rem;
  border-radius: 999px; background: #a84c3e; color: #fff; font-size: .68rem;
  font-weight: 750; line-height: 1.1rem; text-align: center; font-variant-numeric: tabular-nums;
}
.ad-image-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; align-items: center; }
.ad-image-row .field input { min-width: 0; }
.ad-image-location { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .45rem; margin-top: .4rem; }
.ad-image-location a { min-width: 0; font-size: .82rem; color: #315f43; text-decoration: underline; overflow-wrap: anywhere; }
.file-input-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.upload-image { white-space: nowrap; }
.platform-entry-title { display: flex; align-items: start; gap: .3rem; min-width: 0; }
.platform-entry-title > a, .platform-entry-title > span:first-child { min-width: 0; flex: 1; }
.platform-entry-title .resource-mark { flex: 0 0 auto; }
.src-row > .select-menu { flex: 0 0 8.5rem; min-width: 0; }
.src-row > .select-menu + .select-menu { flex-basis: 9rem; }
@media (max-width: 767.98px) {
  .src-row > .select-menu { flex: 1 1 8rem; }
  .src-row > .select-menu + .select-menu { flex-basis: 8rem; }
}
@media (max-width: 767.98px) {
  #recommend .rec-hd { padding-inline: .8rem; }
  #recommend .rec-hd h3 { font-size: 1rem; }
  #recommend .rec-hd select { font-size: .8rem; }
  .rec-filters { padding-inline: .8rem; }
  .account-action { padding-inline: .68rem; }
}
