/* v76 物品详情 / 手机底部导航 / 筛选结果合计 (item-nav.js) */

/* ---- item dialog ---- */
.ix-tag-line{display:flex;align-items:center;gap:8px;max-width:100%}
.ix-tag-line>[data-item-farm]{flex:0 1 auto;min-width:0;width:auto!important}
.ix-copy-tag{all:unset;box-sizing:border-box;flex:none;display:inline-grid;place-items:center;width:30px;height:30px;
 border-radius:9px;background:rgba(132,89,111,.08);background:color-mix(in srgb,var(--green,#84596f) 8%,transparent);border:1px solid rgba(132,89,111,.18);border:1px solid color-mix(in srgb,var(--green,#84596f) 18%,transparent);color:#84596f;color:var(--green,#84596f);cursor:pointer;
 transition:background .15s,transform .12s;-webkit-tap-highlight-color:transparent}
.ix-copy-tag svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ix-copy-tag:hover{background:rgba(132,89,111,.16);background:color-mix(in srgb,var(--green,#84596f) 16%,transparent)}
.ix-copy-tag:active{transform:scale(.9)}
.ix-copy-tag:focus-visible{outline:2px solid #84596f;outline:2px solid var(--green,#84596f);outline-offset:2px}
.ix-copy-tag.is-done{background:#e6f3e4;border-color:#b9d9b3;color:#3c8a55}
.ix-threshold{margin-top:14px;border:1px solid rgba(132,89,111,.22);border:1px solid color-mix(in srgb,var(--green,#84596f) 22%,transparent);border-radius:10px;background:rgba(255,255,255,.55)}
.ix-threshold>summary{display:flex;align-items:center;gap:8px;padding:10px 14px;cursor:pointer;font-size:14px;font-weight:600;color:#5b4352;list-style:none}
.ix-threshold>summary::-webkit-details-marker{display:none}
.ix-threshold>summary::after{content:'展开';margin-left:auto;font-size:12px;font-weight:500;color:#84596f;color:var(--green,#84596f)}
.ix-threshold[open]>summary::after{content:'收起'}
.ix-threshold-value{font-weight:700;color:#84596f;color:var(--green,#84596f)}
.ix-threshold #thresholdForm{margin:0;padding:0 14px 14px}

.ix-trend{margin:10px 0 4px;padding:8px 10px 6px;border-radius:10px;background:rgba(255,255,255,.6);border:1px solid rgba(132,89,111,.16);border:1px solid color-mix(in srgb,var(--green,#84596f) 16%,transparent)}
.ix-trend-head{display:flex;align-items:baseline;gap:10px;font-size:13px;color:#5b4352;flex-wrap:wrap}
.ix-trend-title{font-weight:700}
.ix-trend-now b{font-size:15px;color:#354052}
.ix-trend-now small{margin-left:4px;color:#8a7d86;font-size:11px}
.ix-trend-delta{margin-left:auto;font-size:12px;font-weight:600;color:#8a7d86}
.ix-trend-delta.is-up{color:#3c8a55}
.ix-trend-delta.is-down{color:#c0583f}
.ix-trend-chart{display:block;width:100%;height:58px;margin-top:4px;overflow:visible}
.ix-trend-chart .ix-area{fill:rgba(132,89,111,.12);fill:color-mix(in srgb,var(--green,#84596f) 12%,transparent)}
.ix-trend-chart .ix-line{fill:none;stroke:#84596f;stroke:var(--green,#84596f);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.ix-trend-chart circle{fill:#84596f;fill:var(--green,#84596f);stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke}
.ix-trend-chart circle.is-partial{fill:#fff;stroke:#84596f;stroke:var(--green,#84596f)}
.ix-trend-chart .ix-hits rect{fill:transparent;cursor:pointer}
.ix-trend-axis{display:flex;justify-content:space-between;margin-top:2px;font-size:10px;color:#8a7d86;font-variant-numeric:tabular-nums}
.ix-trend-note{margin-top:4px;font-size:11px;color:#8a7d86}

/* ---- filtered total chip ---- */
.ix-filter-total{display:inline-flex;align-items:baseline;gap:4px;background:#eef6ea!important;border-color:#c9dcc0!important}
.ix-filter-total b{font-size:13px;color:#2f6b3f}
.ix-filter-kinds{margin-left:4px;color:#6b7a66}
.ix-filter-total[hidden]{display:none}

/* ---- phone bottom nav ---- */
.ix-bottom-nav{display:none}
@media (max-width:700px){
 body.ix-has-bottom-nav aside.sidebar{display:none!important}
 body.ix-has-bottom-nav #workspace:not([hidden]) .ix-bottom-nav{display:grid}
 .ix-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:40;grid-auto-flow:column;grid-auto-columns:1fr;
  background:linear-gradient(180deg,#4b3443 0%,#33232e 100%);
  background:linear-gradient(180deg,color-mix(in srgb,var(--deep,#604354) 88%,#fff) 0%,color-mix(in srgb,var(--deep,#604354) 78%,#000) 100%);border-top:1px solid rgba(255,255,255,.08);box-shadow:0 -6px 22px rgba(30,18,26,.28);
  padding:0 4px env(safe-area-inset-bottom)}
 .ix-bottom-nav button{all:unset;position:relative;z-index:1;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  min-height:62px;font-size:12px;font-weight:600;color:rgba(255,255,255,.7);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:color .25s}
 .ix-bottom-nav button[hidden]{display:none}
 .ix-bottom-nav .ix-ico{line-height:1;height:22px;display:grid;place-items:center;transition:transform .35s cubic-bezier(.34,1.56,.64,1)}
 .ix-bottom-nav button[aria-current="page"],.ix-bottom-nav button[data-active]{color:#fff}
 .ix-bottom-nav button[aria-current="page"] .ix-ico,.ix-bottom-nav button[data-active] .ix-ico{transform:scale(1.1)}
 .ix-bottom-nav button.is-pressed .ix-ico{animation:ix-bounce .42s cubic-bezier(.34,1.56,.64,1)}
 /* sliding highlight behind the current button */
 .ix-indicator{position:absolute;top:3px;left:4px;height:56px;width:calc((100% - 8px)/var(--n,5));pointer-events:none;opacity:0;
  transform:translateX(calc(var(--i,0)*100%));transition:transform .42s cubic-bezier(.34,1.4,.64,1),opacity .2s}
 .ix-indicator::before{content:'';position:absolute;inset:0 6px;border-radius:16px;background:linear-gradient(180deg,rgba(214,160,190,.36),rgba(164,104,140,.30));
  background:linear-gradient(180deg,color-mix(in srgb,var(--green,#84596f) 70%,#fff),var(--green,#84596f));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 4px 14px rgba(0,0,0,.22)}
 .ix-bottom-nav.has-current .ix-indicator{opacity:1}
 @keyframes ix-bounce{0%{transform:scale(1)}35%{transform:scale(.78)}70%{transform:scale(1.18)}100%{transform:scale(1.1)}}
 @media (prefers-reduced-motion:reduce){.ix-indicator,.ix-bottom-nav .ix-ico{transition:none}.ix-bottom-nav button.is-pressed .ix-ico{animation:none}}
 body.ix-has-bottom-nav .main{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
 body.ix-has-bottom-nav #notice{bottom:calc(74px + env(safe-area-inset-bottom))}
}
.ix-more-sheet{margin:auto auto 0;width:100%;max-width:min(520px,100vw);outline:none;max-height:85vh;border:0;border-radius:22px 22px 0 0;padding:8px 16px calc(16px + env(safe-area-inset-bottom));
 background:linear-gradient(180deg,#fff8fb 0%,#fffdfa 120px);box-shadow:0 -10px 34px rgba(40,24,34,.25);color:#3f2f39}
.ix-more-sheet[open]{animation:ix-sheet-up .32s cubic-bezier(.22,1,.36,1)}
.ix-more-sheet::backdrop{background:rgba(36,22,31,.42);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
@keyframes ix-sheet-up{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
.ix-more-grip{width:40px;height:4px;margin:2px auto 10px;border-radius:4px;background:rgba(132,89,111,.25);background:color-mix(in srgb,var(--green,#84596f) 25%,transparent)}
.ix-more-head{display:flex;align-items:center;justify-content:space-between;padding:0 2px 14px}
.ix-more-head strong{display:block;font-size:18px;letter-spacing:.5px}
.ix-more-head small{display:block;margin-top:2px;font-size:12px;color:#8a7d86}
.ix-more-close{all:unset;box-sizing:border-box;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:rgba(132,89,111,.1);background:color-mix(in srgb,var(--green,#84596f) 10%,transparent);color:#84596f;color:var(--green,#84596f);cursor:pointer}
.ix-more-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.ix-more-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ix-more-list.is-pairs{grid-template-columns:repeat(2,1fr)}
.ix-more-list.is-pairs .ix-more-tile{flex-direction:row;justify-content:flex-start;gap:12px;min-height:72px;padding:12px 14px;font-size:14px}
.ix-more-tile{all:unset;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:92px;padding:12px 4px;
 border-radius:16px;background:#fff;border:1px solid rgba(132,89,111,.12);border:1px solid color-mix(in srgb,var(--green,#84596f) 12%,transparent);box-shadow:0 2px 8px rgba(60,40,55,.06);font-size:13px;font-weight:600;color:#4e3c48;text-align:center;cursor:pointer;
 transition:transform .15s,box-shadow .15s;-webkit-tap-highlight-color:transparent}
.ix-more-tile:active{transform:scale(.95);box-shadow:none}
.ix-more-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(180deg,#f6e9f0,#ecdbe5);color:#84596f;color:var(--green,#84596f)}
.ix-more-tile.is-active{border-color:#84596f;border-color:var(--green,#84596f);background:#fbf3f7}
.ix-more-tile.is-active .ix-more-icon{background:linear-gradient(180deg,#9a6b84,#7a4d64);color:#fff}
.ix-more-logout{all:unset;box-sizing:border-box;margin-top:14px;width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;
 background:#fff3f0;border:1px solid #f1cfc6;color:#c0583f;font-size:14px;font-weight:700;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ix-more-logout:active{background:#fde4dd}
.ix-more-logout svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion:reduce){.ix-more-sheet[open]{animation:none}}
.ix-ico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ix-more-close:focus-visible,.ix-more-tile:focus-visible,.ix-more-logout:focus-visible{outline:2px solid #84596f;outline:2px solid var(--green,#84596f);outline-offset:2px}
/* garden.css caps phone dialogs at 95vw (body.farm-ui[data-density] dialog); the id selector wins. */
dialog#ixMoreSheet{width:100%;max-width:min(520px,100vw)}
dialog#ixMoreSheet:focus,dialog#ixMoreSheet:focus-visible{outline:none!important;box-shadow:0 -10px 34px rgba(40,24,34,.25)}
/* v77: tints that follow the theme (plain colors above stay as fallback for browsers without color-mix) */
.ix-more-sheet{background:linear-gradient(180deg,color-mix(in srgb,var(--green,#84596f) 7%,#fff) 0%,#fffdfa 120px)}
.ix-more-icon{background:linear-gradient(180deg,color-mix(in srgb,var(--green,#84596f) 12%,#fff),color-mix(in srgb,var(--green,#84596f) 20%,#fff))}
.ix-more-tile.is-active{background:color-mix(in srgb,var(--green,#84596f) 7%,#fff)}
.ix-more-tile.is-active .ix-more-icon{background:linear-gradient(180deg,color-mix(in srgb,var(--green,#84596f) 82%,#fff),var(--deep,#604354))}
.ix-more-grip{background:color-mix(in srgb,var(--green,#84596f) 28%,transparent)}
.ix-threshold>summary{color:var(--deep,#5b4352)}
.ix-trend-head{color:var(--deep,#5b4352)}
