/* HAVEN_MEMORY_MANAGER_R2_1 */
.hmm-root{height:100%;min-height:0;overflow:auto;box-sizing:border-box;padding:28px 34px 70px;color:#2f2935;background:linear-gradient(180deg,rgba(250,248,252,.95),rgba(248,246,250,.98));font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.hmm-toolbar{max-width:1080px;margin:0 auto 20px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.hmm-heading{display:flex;align-items:center;gap:14px;min-width:0}
.hmm-eyebrow{display:none}
.hmm-heading h1{margin:0;font-family:Georgia,"Times New Roman","Songti SC",serif;font-size:28px;line-height:1.15;font-weight:500;color:#332a3b}
.hmm-heading p{margin:5px 0 0;font-size:11px;color:#908596;line-height:1.55}
.hmm-refresh{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border:1px solid rgba(87,67,98,.10);border-radius:50%;background:rgba(255,255,255,.72);color:#765c91;font-size:17px;line-height:1;cursor:pointer;box-shadow:0 3px 12px rgba(61,44,72,.035);transition:.16s ease}
.hmm-refresh:hover{background:#fff;border-color:rgba(110,79,154,.22);transform:translateY(-1px)}
.hmm-refresh:disabled{opacity:.55;cursor:default;transform:none}
.hmm-refresh.is-loading span{display:block;animation:hmm-spin .8s linear infinite}
@keyframes hmm-spin{to{transform:rotate(360deg)}}

.hmm-tabs{max-width:1080px;margin:0 auto 20px;display:flex;align-items:center;gap:4px;padding:4px;border:1px solid rgba(83,64,94,.08);border-radius:13px;background:rgba(255,255,255,.56);overflow-x:auto;scrollbar-width:none}
.hmm-tabs::-webkit-scrollbar{display:none}
.hmm-tabs button{flex:0 0 auto;border:0;background:transparent;color:#817687;border-radius:9px;padding:8px 11px;font:inherit;font-size:11px;cursor:pointer;display:flex;align-items:center;gap:6px;white-space:nowrap}
.hmm-tabs button b{min-width:16px;height:16px;padding:0 4px;box-sizing:border-box;display:grid;place-items:center;border-radius:999px;background:rgba(104,80,119,.07);font-size:9px;font-weight:500;color:#94889b}
.hmm-tabs button.is-active{background:#fff;color:#5f466f;box-shadow:0 2px 10px rgba(65,46,76,.06)}
.hmm-tabs button.is-active b{background:rgba(110,79,154,.11);color:#6e4f9a}

.hmm-history-tools{max-width:1080px;margin:-7px auto 16px;display:flex;align-items:flex-end;gap:10px}
.hmm-history-tools label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#9a8f9e}
.hmm-history-tools input{border:1px solid rgba(82,63,92,.12);border-radius:8px;background:#fff;padding:7px 9px;color:#615769;font:inherit;font-size:11px}
.hmm-history-tools button{border:0;background:transparent;color:#74598e;font:inherit;font-size:10px;padding:8px 4px;cursor:pointer}

.hmm-list,.hmm-history-groups{max-width:1080px;margin:0 auto;display:grid;gap:14px}
.hmm-day{display:grid;gap:9px}
.hmm-day+.hmm-day{margin-top:10px}
.hmm-day-head{display:flex;align-items:center;justify-content:space-between;padding:2px 3px;color:#837789}
.hmm-day-head strong{font-family:Georgia,"Times New Roman","Songti SC",serif;font-weight:500;font-size:15px}
.hmm-day-head span{font-size:9px}

.hmm-card{border:1px solid rgba(76,58,86,.085);border-radius:16px;background:rgba(255,255,255,.84);padding:19px 21px 17px;box-shadow:0 7px 26px rgba(55,39,67,.03)}
.hmm-card.is-processed{padding:18px 21px}
.hmm-card.is-rejected{opacity:.83}
.hmm-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.hmm-meta{margin-top:6px;font-size:10px;color:#9b909f;line-height:1.45}
.hmm-confidence{font-size:9px;color:#9c91a1;white-space:nowrap;padding-top:3px}

.hmm-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}
.hmm-chips.compact{margin:0}
.hmm-chip{display:inline-flex;align-items:center;min-height:22px;box-sizing:border-box;padding:3px 8px;border-radius:999px;background:rgba(110,79,154,.055);color:#776483;font-size:9.5px;line-height:1.2;border:1px solid rgba(110,79,154,.08)}
.hmm-chip.pending{background:rgba(110,79,154,.075);color:#6d4d91}
.hmm-chip.done{background:rgba(74,103,88,.07);color:#587263;border-color:rgba(74,103,88,.09)}
.hmm-chip.rejected{background:rgba(126,107,113,.055);color:#81747a}
.hmm-chip.level{background:rgba(110,79,154,.045);color:#786681}

.hmm-title{margin:0;font-family:Georgia,"Times New Roman","Songti SC",serif;font-size:18px;line-height:1.45;font-weight:500;color:#372f3d}
.hmm-body{margin-top:9px;white-space:pre-wrap;font-size:12px;line-height:1.82;color:#655c6b}
.hmm-edit{border:0;background:transparent;color:#72568c;font:inherit;font-size:10px;padding:5px 2px;cursor:pointer}
.hmm-edit:hover{text-decoration:underline;text-underline-offset:3px}

.hmm-field{display:block;margin-bottom:13px}
.hmm-field>span,.hmm-block-title{display:block;margin-bottom:6px;font-size:10px;color:#827687}
.hmm-field input,.hmm-field textarea{width:100%;box-sizing:border-box;border:1px solid rgba(80,61,90,.12);border-radius:10px;background:rgba(251,250,252,.78);padding:10px 12px;outline:none;color:#322b38;font:inherit;font-size:12px;line-height:1.75;transition:.15s;resize:vertical}
.hmm-field input:focus,.hmm-field textarea:focus{border-color:rgba(110,79,154,.36);box-shadow:0 0 0 3px rgba(110,79,154,.055);background:#fff}
.hmm-field input:disabled,.hmm-field textarea:disabled{opacity:.65}
.hmm-block{margin:14px 0}
.hmm-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hmm-level{border:1px solid rgba(81,62,91,.10);border-radius:11px;background:#fbfafc;padding:10px 11px;text-align:left;color:#6f6475;cursor:pointer;transition:.15s}
.hmm-level:hover{background:#fff;border-color:rgba(110,79,154,.22)}
.hmm-level.is-active{background:rgba(110,79,154,.065);border-color:rgba(110,79,154,.31)}
.hmm-level:disabled{cursor:default;opacity:.65}
.hmm-level strong{display:block;font-size:12px;font-weight:600;color:#473d4d}
.hmm-level.is-active strong{color:#684c8d}
.hmm-level small{display:block;margin-top:3px;font-size:9px;line-height:1.45;color:#9d939f}

.hmm-inline-flags{display:flex;flex-wrap:wrap;gap:8px 19px;margin:13px 0 8px}
.hmm-toggle{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#665b6c;cursor:pointer;user-select:none}
.hmm-toggle input{position:absolute;opacity:0;pointer-events:none}
.hmm-toggle-box{width:16px;height:16px;box-sizing:border-box;display:grid;place-items:center;border:1px solid rgba(83,64,93,.20);border-radius:5px;background:#fff;color:#fff;font-size:10px}
.hmm-toggle.is-on .hmm-toggle-box{background:#6e4f9a;border-color:#6e4f9a}
.hmm-toggle:has(input:disabled){opacity:.58;cursor:default}

.hmm-more{display:flex;align-items:center;gap:6px;border:0;background:transparent;color:#7a6b83;font:inherit;font-size:10px;padding:6px 1px;cursor:pointer}
.hmm-more b{font-size:10px;font-weight:400;color:#a094a5}
.hmm-advanced{margin:2px 0 12px;padding:11px 12px;border-radius:10px;border:1px solid rgba(83,64,94,.07);background:rgba(110,79,154,.022);display:flex;flex-wrap:wrap;gap:9px 18px}
.hmm-advanced p{width:100%;margin:0 0 2px;font-size:9.5px;color:#9b909e}

.hmm-reason{margin:0 0 14px;padding:9px 11px;border-left:2px solid rgba(110,79,154,.16);background:rgba(110,79,154,.02)}
.hmm-reason span{font-size:9px;color:#9d929f}
.hmm-reason p{margin:3px 0 0;font-size:10.5px;line-height:1.65;color:#786d7e}
.hmm-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px;padding-top:14px;border-top:1px solid rgba(76,58,86,.06)}
.hmm-btn{border-radius:9px;padding:8px 13px;font:inherit;font-size:10.5px;cursor:pointer}
.hmm-btn.quiet{border:1px solid rgba(82,63,92,.11);background:transparent;color:#7c707f}
.hmm-btn.primary{border:1px solid #594269;background:#594269;color:#fff;box-shadow:0 4px 12px rgba(65,47,75,.10)}
.hmm-btn:disabled{opacity:.45;cursor:default}
.hmm-inline-error{margin-top:10px;border-radius:9px;padding:9px 10px;background:rgba(155,60,75,.055);color:#963f4e;font-size:10px}
.hmm-edit-note{margin-top:10px;font-size:9.5px;line-height:1.65;color:#9b909e}
.hmm-soft-warning{margin-top:11px;font-size:9.5px;color:#9b7e6f}
.hmm-notice{position:sticky;top:8px;z-index:4;max-width:1080px;margin:0 auto 11px;padding:9px 11px;border:1px solid rgba(110,79,154,.11);border-radius:9px;background:rgba(250,248,252,.97);box-shadow:0 5px 16px rgba(55,39,67,.05);color:#684f78;font-size:10.5px}
.hmm-error,.hmm-empty,.hmm-loading{max-width:720px;margin:70px auto 0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:7px;color:#918694}
.hmm-error strong,.hmm-empty strong,.hmm-loading strong{font-size:13px;font-weight:500;color:#685e6d}
.hmm-error span,.hmm-empty span{max-width:560px;font-size:10.5px;line-height:1.8}
.hmm-error button{margin-top:5px;border:1px solid rgba(110,79,154,.14);border-radius:8px;background:#fff;color:#6e4f9a;padding:7px 11px;font:inherit;font-size:10px;cursor:pointer}
.hmm-empty-mark{font-family:Georgia,serif;font-size:28px;color:rgba(110,79,154,.33)}
.hmm-spinner{width:18px;height:18px;border:1.5px solid rgba(110,79,154,.15);border-top-color:#6e4f9a;border-radius:50%;animation:hmm-spin .75s linear infinite}

.hmm-root.is-mobile{padding:20px 13px 88px}
.hmm-root.is-mobile .hmm-toolbar{margin-bottom:15px}
.hmm-root.is-mobile .hmm-heading h1{font-size:24px}
.hmm-root.is-mobile .hmm-heading p{font-size:10px}
.hmm-root.is-mobile .hmm-tabs{margin-bottom:14px}
.hmm-root.is-mobile .hmm-tabs button{padding:7px 9px}
.hmm-root.is-mobile .hmm-card{padding:16px 14px 15px;border-radius:14px}
.hmm-root.is-mobile .hmm-levels{grid-template-columns:1fr}
.hmm-root.is-mobile .hmm-level{display:grid;grid-template-columns:60px 1fr;align-items:center}
.hmm-root.is-mobile .hmm-level small{margin:0}
.hmm-root.is-mobile .hmm-inline-flags,.hmm-root.is-mobile .hmm-advanced{flex-direction:column;align-items:flex-start}
.hmm-root.is-mobile .hmm-actions{display:grid;grid-template-columns:1fr 1.35fr}
.hmm-root.is-mobile .hmm-btn{width:100%}
.hmm-root.is-mobile .hmm-history-tools{margin-top:-3px}


/* R2.1 · Folio custom history calendar */
.hmm-history-tools{position:relative;align-items:flex-end}
.hmm-history-date-field{display:flex;flex-direction:column;gap:6px;position:relative}
.hmm-history-date-field>span{font-size:10px;color:#9a8f9e}
.hmm-history-all{border:0!important;background:transparent!important;color:#74598e!important;font-size:10px!important;padding:8px 4px!important;cursor:pointer}
.hmm-date-picker{position:relative}
.hmm-date-trigger{min-width:126px;height:34px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 11px;border:1px solid rgba(82,63,92,.11);border-radius:9px;background:rgba(255,255,255,.84);color:#7e7383;font:inherit;font-size:10.5px;cursor:pointer}
.hmm-date-trigger.has-value{color:#54495a}
.hmm-date-trigger b{font-weight:400;color:#a69bab;font-size:10px}
.hmm-date-backdrop{display:none}
.hmm-calendar{position:absolute;z-index:40;top:41px;left:0;width:292px;box-sizing:border-box;padding:13px;border:1px solid rgba(76,58,86,.10);border-radius:15px;background:rgba(255,254,252,.985);box-shadow:0 22px 60px rgba(42,31,49,.15);color:#443a49}
.hmm-cal-head{display:flex;align-items:center;justify-content:space-between;padding:1px 2px 10px}
.hmm-cal-head strong{font:600 12px/1.2 Inter,"Noto Sans SC",sans-serif;color:#44394b}
.hmm-cal-head>div{display:flex;gap:3px}
.hmm-cal-head button{width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:#776b7d;font:400 20px/1 Georgia,serif;cursor:pointer}
.hmm-cal-head button:hover{background:rgba(110,79,154,.055)}
.hmm-cal-week,.hmm-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.hmm-cal-week{padding:0 0 5px}
.hmm-cal-week span{display:grid;place-items:center;height:24px;color:#a398a7;font-size:9px}
.hmm-cal-day{height:31px;border:0;border-radius:9px;background:transparent;color:#554b5b;font:500 10px/1 Inter,"Noto Sans SC",sans-serif;cursor:pointer}
.hmm-cal-day:hover{background:rgba(110,79,154,.055)}
.hmm-cal-day.is-today{box-shadow:inset 0 0 0 1px rgba(110,79,154,.28);color:#6e4f9a}
.hmm-cal-day.is-selected{background:#6e4f9a;color:#fff;box-shadow:none}
.hmm-cal-day.is-empty{display:block}
.hmm-cal-foot{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(76,58,86,.07)}
.hmm-cal-foot button{height:31px;border-radius:8px;font:600 9.5px/1 Inter,"Noto Sans SC",sans-serif;cursor:pointer}
.hmm-cal-foot .quiet{border:0;background:transparent;color:#786c7e}
.hmm-cal-foot .primary{border:1px solid #594269;background:#594269;color:#fff}

@media(max-width:760px){
  .hmm-date-backdrop{display:block;position:fixed;z-index:59;inset:0;border:0;background:rgba(32,24,38,.24);backdrop-filter:blur(3px)}
  .hmm-calendar{position:fixed;z-index:60;left:10px;right:10px;top:auto;bottom:calc(74px + env(safe-area-inset-bottom));width:auto;padding:15px;border-radius:18px;box-shadow:0 24px 70px rgba(35,25,42,.20)}
  .hmm-cal-day{height:36px}
  .hmm-cal-week span{height:26px}
  .hmm-cal-foot button{height:35px}
}




/* MEMORY_REVIEW_FONT_SYNC_V2
   Follow the same Folio Console typography variables.
*/

.hmm-root {
  font-family: var(--sans) !important;
}

.hmm-root button,
.hmm-root input,
.hmm-root textarea,
.hmm-root select,
.hmm-tabs button,
.hmm-history-tools input,
.hmm-history-tools button,
.hmm-field input,
.hmm-field textarea,
.hmm-more,
.hmm-btn,
.hmm-error button,
.hmm-date-trigger,
.hmm-cal-head strong,
.hmm-cal-day,
.hmm-cal-foot button {
  font-family: var(--sans) !important;
}

/* 页面标题 / 记忆标题使用 Folio Console 同一 serif */
.hmm-heading h1,
.hmm-day-head strong,
.hmm-title,
.hmm-empty-mark {
  font-family: var(--serif) !important;
}


/* MEMORY_REVIEW_HEADING_SYNC_V3
   Match the real Folio Console heading typography exactly.
*/

.hmm-heading h1 {
  margin: 8px 0 7px !important;
  font: italic 500 44px/1.04 Georgia,"Noto Serif SC",serif !important;
  color: var(--fc-ink, #332a3b) !important;
  letter-spacing: -.02em !important;
}

.hmm-heading p {
  margin: 0 !important;
  font: 12px/1.7 Inter,"Noto Sans SC",sans-serif !important;
}

.hmm-root,
.hmm-tabs button {
  font-family: Inter,"Noto Sans SC",-apple-system,system-ui,sans-serif !important;
}

/* 与 Console mobile 标题尺寸保持一致 */
@media (max-width: 900px) {
  .hmm-heading h1 {
    font-size: 34px !important;
  }
}

/* HAVEN_IMPORTANCE_RESTORE_R1 */
.hmm-importance-picker{grid-template-columns:repeat(5,minmax(0,1fr))}
.hmm-importance-picker .hmm-level{text-align:center;padding:8px 5px;min-height:52px}
.hmm-importance-picker .hmm-level small{min-height:14px}
.hmm-root.is-mobile .hmm-importance-picker{grid-template-columns:repeat(5,minmax(0,1fr))}
.hmm-root.is-mobile .hmm-importance-picker .hmm-level{display:block;padding:8px 3px}

/* HAVEN_IMPORTANCE_SLIDER_R1 */
.hmm-importance-slider{
  width:100%;
  box-sizing:border-box;
  padding:4px 2px 2px;
}

.hmm-importance-slider-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.hmm-importance-slider-head strong{
  font-size:14px;
  font-weight:650;
  color:#473d4d;
}

.hmm-importance-slider-head span{
  font-size:9.5px;
  color:#95899a;
  text-align:right;
}

.hmm-importance-range{
  --hmm-imp-pct:44.444%;
  width:100%;
  height:24px;
  margin:0;
  appearance:none;
  -webkit-appearance:none;
  background:transparent;
  cursor:pointer;
  outline:none;
}

.hmm-importance-range::-webkit-slider-runnable-track{
  height:5px;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    #6e4f9a 0 var(--hmm-imp-pct),
    rgba(83,64,93,.12) var(--hmm-imp-pct) 100%
  );
}

.hmm-importance-range::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:18px;
  height:18px;
  margin-top:-6.5px;
  border-radius:50%;
  border:2px solid #fff;
  background:#6e4f9a;
  box-shadow:0 2px 10px rgba(80,55,108,.20);
}

.hmm-importance-range::-moz-range-track{
  height:5px;
  border-radius:999px;
  background:rgba(83,64,93,.12);
}

.hmm-importance-range::-moz-range-progress{
  height:5px;
  border-radius:999px;
  background:#6e4f9a;
}

.hmm-importance-range::-moz-range-thumb{
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid #fff;
  background:#6e4f9a;
  box-shadow:0 2px 10px rgba(80,55,108,.20);
}

.hmm-importance-range:disabled{
  opacity:.55;
  cursor:default;
}

.hmm-importance-scale{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  margin-top:2px;
  color:#a096a3;
  font-size:8.5px;
}

.hmm-importance-scale span:first-child{text-align:left}
.hmm-importance-scale span:nth-child(2),
.hmm-importance-scale span:nth-child(3),
.hmm-importance-scale span:nth-child(4){text-align:center}
.hmm-importance-scale span:last-child{text-align:right}

/* HAVEN_MEMORY_REVIEW_HISTORY_TWO_COLUMN_R1
   历史已处理：桌面端改为两列卡片，移动端保持单列
*/
@media (min-width: 901px) {
  .hmm-history-groups .hmm-day .hmm-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    align-items: stretch;
  }

  .hmm-history-groups .hmm-day .hmm-card {
    height: 100%;
  }
}

@media (max-width: 900px) {
  .hmm-history-groups .hmm-day .hmm-list {
    grid-template-columns: 1fr;
  }
}

/* HAVEN_MEMORY_REVIEW_SOURCE_EVIDENCE_STYLE_R1 */
.hm-source-evidence{flex:1 0 100%;width:100%;margin-top:8px}
.hm-source-toggle{appearance:none;border:1px solid rgba(110,79,154,.20);background:rgba(110,79,154,.07);color:#624989;border-radius:9px;padding:8px 12px;font:650 11px/1 Inter,"Noto Sans SC",sans-serif;cursor:pointer}
.hm-source-toggle:hover{background:rgba(110,79,154,.12)}
.hm-source-toggle:disabled{opacity:.42;cursor:default}
.hm-source-panel{margin-top:9px;padding:10px 11px;border:1px solid rgba(84,65,101,.12);border-radius:10px;background:rgba(255,255,255,.58)}
.hm-source-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;color:#73697b;font-size:10px}
.hm-source-head button{appearance:none;border:0;background:transparent;color:#6e4f9a;font:650 10px/1 inherit;cursor:pointer;padding:4px}
.hm-source-state{padding:7px 2px;color:#7b7280;font-size:11px}.hm-source-state.is-error{color:#9b5353}
.hm-source-list{display:flex;flex-direction:column;gap:7px;max-height:360px;overflow:auto;padding-right:3px}
.hm-source-row{padding:9px 10px;border-left:2px solid rgba(95,83,105,.13);background:rgba(247,245,249,.74);border-radius:0 8px 8px 0}
.hm-source-row.is-source{border-left-color:#6e4f9a;background:rgba(110,79,154,.055)}
.hm-source-meta{display:flex;align-items:center;gap:8px;margin-bottom:5px;color:#857c8a;font-size:9.5px}.hm-source-meta strong{color:#4b4251}.hm-source-meta i{margin-left:auto;font-style:normal;opacity:.72}
.hm-source-text{white-space:pre-wrap;word-break:break-word;color:#39323f;font-size:12px;line-height:1.65}
[data-theme="dark"] .hm-source-toggle{color:#c7b4e0;border-color:rgba(202,179,229,.20);background:rgba(159,125,197,.10)}
[data-theme="dark"] .hm-source-panel{background:rgba(31,28,35,.72);border-color:rgba(255,255,255,.08)}
[data-theme="dark"] .hm-source-row{background:rgba(255,255,255,.035);border-left-color:rgba(255,255,255,.12)}
[data-theme="dark"] .hm-source-row.is-source{background:rgba(159,125,197,.08);border-left-color:#aa8dc9}
[data-theme="dark"] .hm-source-text{color:#e2dce7}
@media(max-width:700px){.hm-source-panel{padding:9px}.hm-source-list{max-height:45vh}.hm-source-text{font-size:11.5px}.hm-source-meta{flex-wrap:wrap}}

/* HAVEN_MEMORY_REVIEW_COMPACT_SLIDER_R1 */
.hmm-importance-slider{
  width:min(420px,100%);
  box-sizing:border-box;
  padding:0;
}

.hmm-importance-slider-head{
  gap:10px;
  margin-bottom:3px;
}

.hmm-importance-slider-head strong{
  font-size:13px;
}

.hmm-importance-slider-head span{
  font-size:9px;
}

.hmm-importance-range{
  width:100%;
  height:22px;
}

.hmm-importance-range::-webkit-slider-runnable-track{
  height:4px;
}

.hmm-importance-range::-webkit-slider-thumb{
  width:16px;
  height:16px;
  margin-top:-6px;
  box-shadow:0 1px 6px rgba(80,55,108,.18);
}

.hmm-importance-range::-moz-range-track,
.hmm-importance-range::-moz-range-progress{
  height:4px;
}

.hmm-importance-range::-moz-range-thumb{
  width:16px;
  height:16px;
  box-shadow:0 1px 6px rgba(80,55,108,.18);
}

.hmm-importance-scale{
  margin-top:0;
  font-size:8px;
}

/* 手机保持足够大的拖动面积 */
.hmm-root.is-mobile .hmm-importance-slider{
  width:100%;
  max-width:none;
}

.hmm-root.is-mobile .hmm-importance-range{
  height:28px;
}

.hmm-root.is-mobile .hmm-importance-range::-webkit-slider-thumb{
  width:18px;
  height:18px;
  margin-top:-7px;
}

.hmm-root.is-mobile .hmm-importance-range::-moz-range-thumb{
  width:18px;
  height:18px;
}
/* END HAVEN_MEMORY_REVIEW_COMPACT_SLIDER_R1 */


/* HAVEN_MEMORY_REVIEW_SLIDER_CARD_R1 */

.hmm-importance-slider{
  width:min(400px,100%);
  box-sizing:border-box;
  padding:10px 12px 8px;
  border:1px solid rgba(110,79,154,.12);
  border-radius:12px;
  background:rgba(110,79,154,.025);
}

.hmm-importance-slider-head{
  margin-bottom:6px;
}

.hmm-importance-slider-head strong{
  font-size:13px;
}

.hmm-importance-slider-head span{
  font-size:9px;
}

.hmm-importance-range{
  width:100%;
}

.hmm-importance-scale{
  margin-top:2px;
}

/* mobile */
.hmm-root.is-mobile .hmm-importance-slider{
  width:100%;
  padding:10px 12px 8px;
}

/* END HAVEN_MEMORY_REVIEW_SLIDER_CARD_R1 */

/* HAVEN_MEMORY_REVIEW_CLOSEOUT_R1 */
.hmm-origin-summary{
  margin:0 0 14px;
  padding:8px 11px;
  border:1px solid rgba(110,79,154,.10);
  border-radius:10px;
  background:rgba(110,79,154,.025);
  color:#776b7c;
  font-size:10px;
}
.hmm-source-overlap{
  margin:10px 0 12px;
  padding:8px 10px;
  border:1px solid rgba(154,107,79,.18);
  border-radius:9px;
  background:rgba(154,107,79,.045);
  color:#765b50;
  font-size:10.5px;
  line-height:1.55;
}
.hmm-similar{display:inline-flex;flex-direction:column;align-items:flex-start;gap:6px}
.hmm-similar-toggle{
  border:1px solid rgba(110,79,154,.20);
  border-radius:8px;
  background:#fff;
  color:#654a84;
  font-size:10px;
  padding:7px 10px;
  cursor:pointer;
}
.hmm-similar-panel{
  width:min(520px,calc(100vw - 70px));
  box-sizing:border-box;
  padding:9px;
  border:1px solid rgba(110,79,154,.12);
  border-radius:9px;
  background:rgba(250,248,252,.96);
  display:flex;
  flex-direction:column;
  gap:7px;
  color:#756a7a;
  font-size:10px;
}
.hmm-similar-panel .is-error{color:#8f5464}
.hmm-similar-row{display:flex;flex-direction:column;gap:2px;padding:7px 8px;border-radius:7px;background:#fff}
.hmm-similar-row strong{font-size:10.5px;color:#493f50;font-weight:600}
.hmm-similar-row span{line-height:1.5;color:#847987}
.hmm-tombstone{padding:10px 0;color:#928795;font-size:10px;line-height:1.6}
.hmm-root.is-mobile .hmm-similar-panel{width:min(100%,calc(100vw - 44px))}
/* END HAVEN_MEMORY_REVIEW_CLOSEOUT_R1 */


/* HAVEN_MEMORY_REVIEW_ORIGIN_FILTER_R1 */
.hmm-origin-filter{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin:10px 0 12px;
}

.hmm-origin-filter button{
  height:29px;
  padding:0 11px;
  border:1px solid rgba(110,79,154,.12);
  border-radius:9px;
  background:rgba(255,255,255,.72);
  color:#776b7d;
  font:600 9.5px/1 Inter,"Noto Sans SC",sans-serif;
  cursor:pointer;
}

.hmm-origin-filter button:hover{
  border-color:rgba(110,79,154,.24);
}

.hmm-origin-filter button.active{
  border-color:#6e4f9a;
  background:#6e4f9a;
  color:#fff;
}
/* END HAVEN_MEMORY_REVIEW_ORIGIN_FILTER_R1 */


/* HAVEN_MEMORY_REVIEW_MOBILE_TABS_R1_20260819 */
@media (max-width: 720px) {
  .hmm-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
    overflow: visible !important;
  }

  .hmm-tabs > button {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: center !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    white-space: nowrap !important;
  }
}
