/* ============================================================
 * styles.css — 生理期 & 运动记录
 * 视觉基准：iPhone 16 Pro（402 × 874 pt），用 env() 动态避让安全区
 * ============================================================ */

:root {
  --pink: #FF4D6D;
  --pink-deep: #C9184A;
  --pink-soft: #FFE3EA;
  --pink-line: #F4A6BC;
  --green: #34C759;
  --green-deep: #0F7A3D;
  --green-soft: #E4F7EA;
  --green-line: #A9DFBE;
  --purple: #7B5BD6;
  --ink: #1C1C1E;
  --ink2: #8E8E93;
  --ink3: #C7C7CC;
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --hair: #EBEBF0;
  --field: #F4F4F8;
  --seg-bg: #E7E7EC;
  --shade: rgba(20, 20, 30, .36);
  --tabbar: rgba(249, 249, 251, .95);
  --danger: #D03050;
}

:root[data-theme="dark"] {
  --pink: #FF6B8A;
  --pink-deep: #FF93A8;
  --pink-soft: #3A1F28;
  --pink-line: #7A3E50;
  --green: #30D158;
  --green-deep: #5BDA85;
  --green-soft: #14301E;
  --green-line: #2A5A3C;
  --purple: #A28BF0;
  --ink: #FFFFFF;
  --ink2: #98989F;
  --ink3: #48484A;
  --bg: #000000;
  --card: #1C1C1E;
  --hair: #2C2C2E;
  --field: #2C2C2E;
  --seg-bg: #2C2C2E;
  --shade: rgba(0, 0, 0, .5);
  --tabbar: rgba(20, 20, 22, .95);
  --danger: #FF6961;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --pink: #FF6B8A;
    --pink-deep: #FF93A8;
    --pink-soft: #3A1F28;
    --pink-line: #7A3E50;
    --green: #30D158;
    --green-deep: #5BDA85;
    --green-soft: #14301E;
    --green-line: #2A5A3C;
    --purple: #A28BF0;
    --ink: #FFFFFF;
    --ink2: #98989F;
    --ink3: #48484A;
    --bg: #000000;
    --card: #1C1C1E;
    --hair: #2C2C2E;
    --field: #2C2C2E;
    --seg-bg: #2C2C2E;
    --shade: rgba(0, 0, 0, .5);
    --tabbar: rgba(20, 20, 22, .95);
    --danger: #FF6961;
  }
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  overscroll-behavior: none;
  touch-action: pan-x pan-y; /* 允许滚动/滑动切月，禁止捏合与双击缩放 */
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

button, .tap { touch-action: manipulation; -webkit-user-select: none; user-select: none; }

/* ---------------- 骨架 ---------------- */
#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.appbar {
  flex: none;
  padding-top: max(env(safe-area-inset-top), 24px);
  background: var(--bg);
}
.appbar .row {
  height: 46px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.appbar h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.5px;
}
.appbar .sub { font-size: 11.5px; color: var(--ink2); }
.navgroup { display: flex; gap: 8px; }
.navbtn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--card); color: #6B6B72;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  border: 0; padding: 0; cursor: pointer;
}
:root[data-theme="dark"] .navbtn { color: var(--ink2); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .navbtn { color: var(--ink2); } }

/* 年月选择器 */
.tap-chev { margin-left: 6px; opacity: .4; vertical-align: 3px; }
.ypick { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 2px 0 18px; }
.ypick .yval { font-size: 17px; font-weight: 700; letter-spacing: -.3px; min-width: 96px; text-align: center; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mcell {
  height: 48px; border-radius: 13px; border: 0; cursor: pointer;
  background: var(--field); color: var(--ink);
  font-family: inherit; font-size: 14.5px; font-weight: 600;
}
.mcell.on { background: var(--pink); color: #FFFFFF; }
.mcell.now { box-shadow: inset 0 0 0 1.5px var(--pink); }
.mcell.on.now { box-shadow: none; }

.view {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}

/* ---------------- 底部导航 ---------------- */
.tabbar {
  flex: none;
  display: flex;
  height: calc(49px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--tabbar);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--hair);
}
.tab {
  flex: 1; border: 0; background: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10.5px; color: var(--ink2);
  font-family: inherit;
}
.tab.on { color: var(--pink); }

/* ---------------- 概览卡 ---------------- */
.ov {
  margin: 12px 16px 0;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-soft) 0%, var(--pink-soft) 100%);
  filter: saturate(1);
}
.ov-top { display: flex; align-items: center; gap: 12px; padding: 15px 16px; }
.ov-main { flex: 1; min-width: 0; }
.ov-k { font-size: 12px; color: var(--pink-deep); opacity: .82; font-weight: 500; }
.ov-v {
  font-size: 29px; font-weight: 700; color: var(--pink-deep);
  letter-spacing: -1px; line-height: 1.18; margin: 1px 0 2px;
}
.ov-v em { font-size: 15px; font-style: normal; font-weight: 600; margin-left: 2px; }
.ov-s { font-size: 12px; color: var(--pink-deep); opacity: .82; }
.ov-ring { width: 74px; text-align: center; flex: none; }
.ov-ring small { display: block; font-size: 10px; color: var(--pink-deep); opacity: .82; margin-top: 3px; }
.ov-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--pink-line);
  font-size: 12px; color: var(--green-deep);
  display: flex; align-items: center; gap: 6px;
}

/* ---------------- 快捷按钮 ---------------- */
.quick { display: flex; gap: 10px; padding: 12px 16px 0; }
.qa {
  flex: 1; height: 44px; border: 0; border-radius: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14.5px; font-weight: 600; font-family: inherit;
}
.qa.p { background: var(--pink); color: #fff; box-shadow: 0 4px 12px rgba(255, 77, 109, .28); }
.qa.g { background: var(--card); color: var(--green-deep); box-shadow: inset 0 0 0 1.5px var(--green-line); }
.qa.o { background: var(--card); color: var(--pink-deep); box-shadow: inset 0 0 0 1.5px var(--pink-line); }
.qa:active { transform: scale(.985); }

/* ---------------- 日历 ---------------- */
.calc {
  margin: 12px 16px 0;
  padding: 12px 8px 8px;
  border-radius: 18px;
  background: var(--card);
}
.wk { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 2px; }
.wk span { text-align: center; font-size: 11px; color: var(--ink2); font-weight: 500; }
.cg { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 46px; }
.cell {
  display: flex; align-items: center; justify-content: center;
  position: relative; background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit;
}
.num {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
}
.cell.out { opacity: .42; }
.cell.period .num { background: var(--pink); color: #fff; font-weight: 600; }
.cell.pred .num { border: 1.5px dashed var(--pink-line); color: var(--pink-deep); }
.cell.fertile .num { background: rgba(123, 91, 214, .16); color: var(--purple); }
.cell.today .num { box-shadow: inset 0 0 0 1.8px var(--ink); }
.cell.today.period .num { box-shadow: inset 0 0 0 1.8px #fff, 0 0 0 1.8px var(--pink); }
.dot {
  position: absolute; top: calc(50% + 19px);
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
}
.lg {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 14px;
  padding: 12px 16px 0; font-size: 10.5px; color: var(--ink2);
}
.lg i { display: inline-block; vertical-align: middle; margin-right: 4px; }
.i-p { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }
.i-d { width: 10px; height: 10px; border-radius: 50%; border: 1.4px dashed var(--pink-line); }
.i-v { width: 10px; height: 10px; border-radius: 50%; background: rgba(123, 91, 214, .3); }
.i-e { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.i-t { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px var(--ink); }

/* ---------------- 分段控件 ---------------- */
.pseg {
  display: flex; background: var(--seg-bg); border-radius: 12px;
  padding: 3px; margin: 12px 16px 0;
}
.pseg button {
  flex: 1; border: 0; background: none; cursor: pointer; font-family: inherit;
  text-align: center; font-size: 14px; font-weight: 600;
  padding: 8px 0; border-radius: 10px; color: var(--ink2);
}
.pseg button.on { background: var(--card); color: var(--pink); box-shadow: 0 1px 4px rgba(0, 0, 0, .10); }
.pseg.green button.on { color: var(--green-deep); }

/* ---------------- 统计 ---------------- */
.mtx { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px 0; }
.metric { background: var(--card); border-radius: 16px; padding: 13px; }
.metric .k { font-size: 11.5px; color: var(--ink2); margin-bottom: 5px; }
.metric .v { font-size: 22px; font-weight: 700; letter-spacing: -.7px; line-height: 1.15; }
.metric .v.sm { font-size: 19px; letter-spacing: -.4px; color: var(--pink-deep); }
.metric .v em { font-size: 12.5px; font-style: normal; font-weight: 600; margin-left: 2px; color: var(--ink2); }
.metric .v.sm em { color: var(--pink-deep); opacity: .7; }
.metric .v.green { color: var(--green-deep); }
.metric .s { font-size: 10.5px; color: var(--ink2); opacity: .78; margin-top: 5px; }
.metric .s.ok { color: var(--green-deep); opacity: 1; }

.sec { margin: 12px 16px 0; background: var(--card); border-radius: 16px; padding: 14px 16px; }
.sec-t { font-size: 13px; font-weight: 700; }
.sec-s { font-size: 11px; color: var(--ink2); margin: 2px 0 12px; }
.trio { display: flex; gap: 18px; }
.trio .k { font-size: 11px; color: var(--ink2); margin-bottom: 4px; }
.trio .v { font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.trio .v em { font-size: 11.5px; font-style: normal; color: var(--ink2); font-weight: 600; margin-left: 2px; }

/* 图表 */
.bars { display: flex; align-items: flex-end; justify-content: space-around; position: relative; }
.avgline { position: absolute; left: 0; right: 0; border-top: 1.4px dashed var(--pink-line); }
.avgline b {
  position: absolute; right: 0; top: -14px;
  font-size: 10px; color: var(--pink-deep); font-weight: 600;
}
.bar { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.bar i {
  width: 26px; border-radius: 7px 7px 3px 3px; display: block;
  background: linear-gradient(180deg, var(--pink) 0%, var(--pink) 100%);
  opacity: .92;
}
.bar u {
  font-size: 11.5px; font-weight: 700; color: var(--pink-deep);
  text-decoration: none; margin-bottom: 5px; line-height: 15px;
}
.blabels { display: flex; justify-content: space-around; font-size: 10px; color: var(--ink2); padding-top: 7px; }
.blabels span { text-align: center; min-width: 30px; }

.hbars { display: flex; flex-direction: column; gap: 10px; }
.hrow { display: flex; align-items: center; gap: 10px; height: 18px; font-size: 12.5px; }
.hrow .nm { width: 64px; flex: none; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow .track { flex: 1; display: block; height: 9px; border-radius: 5px; background: var(--field); overflow: hidden; }
.hrow .fill { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--pink-line), var(--pink)); }
.hrow .ct { width: 40px; flex: none; text-align: right; font-size: 11.5px; color: var(--ink2); }

.doi { display: flex; align-items: center; justify-content: center; gap: 24px; }
.doi svg { flex: none; }
.dleg { flex: 0 0 auto; width: 150px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.dleg div { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink); }
.dleg div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dleg b { margin-left: auto; font-weight: 700; font-size: 12.5px; }
.dleg i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.chart-empty { padding: 24px 0; text-align: center; font-size: 12.5px; color: var(--ink2); }

/* ---------------- 设置 ---------------- */
.gl { font-size: 12px; font-weight: 600; color: var(--ink2); padding: 20px 32px 8px; letter-spacing: .2px; }
.grp { margin: 0 16px; background: var(--card); border-radius: 16px; overflow: hidden; }
.row {
  display: flex; align-items: center; width: 100%; min-height: 44px;
  padding: 0 16px; font-size: 14.5px; position: relative;
  border: 0; background: none; font-family: inherit; color: var(--ink);
  text-align: left; cursor: default;
}
button.row { cursor: pointer; }
.row + .row::before {
  content: ""; position: absolute; left: 16px; right: 0; top: 0;
  height: 1px; background: var(--hair);
}
.row .val { margin-left: auto; color: var(--ink2); font-size: 14px; display: flex; align-items: center; gap: 5px; }
/* 数据分组（导出/导入/清空）加大点击区，避免误触 */
.row.lg { min-height: 56px; font-size: 15.5px; }
.row.lg .val { font-size: 14.5px; }
.row.lg .chev { font-size: 17px; }
.row .em { font-size: 15px; }
.row .nm { margin-left: 9px; }
.row.danger { color: var(--danger); }
.row.mut { color: var(--ink2); }
.chev { color: var(--ink3); font-size: 15px; line-height: 1; margin-left: 6px; }
.about { margin: 20px 16px 0; text-align: center; font-size: 11px; color: var(--ink2); opacity: .8; line-height: 1.7; }

/* 开关 */
.sw-t {
  width: 47px; height: 29px; border-radius: 15px; background: var(--seg-bg);
  position: relative; flex: none; margin-left: auto; transition: background .18s;
}
.sw-t::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px;
  width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, .18); transition: left .18s;
}
.sw-t.on { background: var(--green); }
.sw-t.on::after { left: 20.5px; }

/* ---------------- 底部抽屉 ---------------- */
#sheet-root { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
#sheet-root.open { pointer-events: auto; }
.backdrop {
  position: absolute; inset: 0; background: var(--shade);
  opacity: 0; transition: opacity .24s;
}
#sheet-root.open .backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 34px rgba(0, 0, 0, .22);
  max-height: 90vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateY(102%);
  transition: transform .26s cubic-bezier(.32, .72, 0, 1);
}
#sheet-root.open .sheet { transform: translateY(0); }
.handle { width: 38px; height: 5px; border-radius: 3px; background: var(--ink3); margin: 0 auto 12px; }
.s-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 8px; }
.s-hd b { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
.badge { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.badge.pk { background: var(--pink-soft); color: var(--pink-deep); }
.badge.gr { background: var(--green-soft); color: var(--green-deep); }
.badge.mut { background: var(--field); color: var(--ink2); }

.seg { display: flex; background: var(--seg-bg); border-radius: 11px; padding: 3px; margin-bottom: 16px; }
.seg button {
  flex: 1; border: 0; background: none; cursor: pointer; font-family: inherit;
  text-align: center; font-size: 14px; font-weight: 600; padding: 7px 0;
  border-radius: 9px; color: var(--ink2);
}
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .10); }

.flabel { font-size: 12.5px; font-weight: 600; color: var(--ink2); margin: 0 0 9px; }
.flabel em { font-style: normal; font-weight: 400; opacity: .8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  padding: 8px 14px; border-radius: 11px; font-size: 13.5px; font-weight: 500;
  background: var(--field); color: var(--ink); border: 0; font-family: inherit; cursor: pointer;
}
.chip.on { background: var(--pink-soft); color: var(--pink-deep); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--pink-line); }
.chip.on.g { background: var(--green-soft); color: var(--green-deep); box-shadow: inset 0 0 0 1.5px var(--green-line); }
.chip.add { background: var(--card); color: var(--ink2); box-shadow: inset 0 0 0 1.2px var(--ink3); }
.chip:active { transform: scale(.97); }

.note {
  width: 100%; border: 0; resize: none; font-family: inherit;
  background: var(--field); border-radius: 12px; padding: 12px 14px;
  font-size: 13.5px; color: var(--ink); min-height: 52px; margin-bottom: 18px;
  line-height: 1.45;
}
.note::placeholder { color: var(--ink2); opacity: .7; }
.note:focus { outline: 2px solid var(--pink-line); outline-offset: -1px; }

.row2 { display: flex; gap: 10px; }
.btn {
  width: 100%;
  flex: 1 1 0%;
  height: 48px; border-radius: 14px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 15.5px; font-weight: 600; font-family: inherit;
}
.btn.p { background: var(--pink); color: #fff; box-shadow: 0 5px 14px rgba(255, 77, 109, .26); }
.btn.o { background: var(--card); color: var(--pink-deep); box-shadow: inset 0 0 0 1.5px var(--pink-line); }
.btn.g { background: var(--green); color: #fff; }
.btn.t { background: var(--field); color: var(--ink); }
.btn:active { transform: scale(.985); }
.del { display: block; width: 100%; border: 0; background: none; cursor: pointer; text-align: center; font-size: 13px; color: var(--danger); padding: 16px 0 0; font-family: inherit; }
/* 抽屉内容区顶层的竖排按钮统一留出间距（row2 内的横排按钮不受影响） */
#sheetBody > .btn { margin-top: 10px; }
#sheetBody > .btn:first-child { margin-top: 0; }
.hint { font-size: 12px; color: var(--ink2); margin: -6px 0 16px; line-height: 1.5; }
.plink {
  margin: -4px 0 16px; font-size: 13px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--field); border-radius: 12px; padding: 11px 14px;
}
.plink button { border: 0; background: none; color: var(--pink-deep); font-weight: 600; font-size: 12.5px; font-family: inherit; cursor: pointer; padding: 0; }

/* 提示条 */
#toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translate(-50%, 16px);
  background: rgba(28, 28, 30, .93);
  color: #fff; font-size: 13.5px; padding: 10px 18px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  z-index: 90; max-width: 82vw; text-align: center;
}
:root[data-theme="dark"] #toast { background: rgba(240, 240, 245, .95); color: #1C1C1E; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] #toast { background: rgba(240, 240, 245, .95); color: #1C1C1E; } }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 添加到主屏提示 ---------------- */
.hint-banner {
  margin: 12px 16px 0; padding: 14px 16px; border-radius: 16px;
  background: var(--card); position: relative;
  box-shadow: inset 0 0 0 1.5px var(--pink-line);
}
.hint-banner .hb-t { font-size: 13.5px; font-weight: 700; color: var(--pink-deep); margin-bottom: 6px; }
.hint-banner .hb-d { font-size: 12px; color: var(--ink2); line-height: 1.6; padding-right: 56px; }
.hint-banner .hb-x {
  position: absolute; right: 12px; bottom: 12px;
  border: 0; background: var(--field); color: var(--ink);
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 9px;
  font-family: inherit; cursor: pointer;
}

/* ---------------- 锻炼类型管理 ---------------- */
.typerow { display: flex; align-items: center; gap: 8px; height: 46px; position: relative; }
.typerow + .typerow::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hair);
}
.typerow input {
  border: 0; background: none; font-family: inherit; font-size: 14.5px;
  color: var(--ink); padding: 6px 8px; border-radius: 8px; min-width: 0;
}
.typerow input:focus { outline: 2px solid var(--pink-line); outline-offset: -1px; }
.temoji { width: 38px; text-align: center; font-size: 16px; flex: none; }
.tname { flex: 1; }
.typerow input::placeholder { color: var(--ink2); opacity: .65; }
.tdel {
  border: 0; background: none; color: var(--danger); font-size: 13px;
  font-family: inherit; cursor: pointer; padding: 6px 4px; flex: none;
}
.tdel.add { color: var(--pink); font-weight: 600; }
.tlock { font-size: 11px; color: var(--ink2); flex: none; padding-right: 4px; }
.typerow.new input { background: var(--field); }
.typerow.new { margin-top: 4px; }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 56px 32px; color: var(--ink2); }
.empty .t { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.empty .d { font-size: 12.5px; line-height: 1.7; }

/* 滚动条（桌面预览时） */
.view::-webkit-scrollbar, .sheet::-webkit-scrollbar { width: 0; height: 0; }

/* ---------------- 导入方式选择（窄高卡片） ---------------- */
.imp-opts {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 260px; margin: 0 auto; padding-bottom: 4px;
}
.imp-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: 64px; padding: 10px 14px;
  border-radius: 16px; border: 1.5px solid var(--hair);
  background: var(--bg); font-family: inherit; cursor: pointer;
}
.imp-opt b { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.imp-opt span { font-size: 11.5px; color: var(--ink2); line-height: 1.4; }
.imp-opt:active { transform: scale(.97); }
.imp-opt.main { background: var(--pink); border-color: var(--pink); }
.imp-opt.main b { color: #FFFFFF; }
.imp-opt.main span { color: rgba(255, 255, 255, .85); }
.imp-opt.cancel { min-height: 48px; border-color: transparent; background: none; }
.imp-opt.cancel b { color: var(--ink2); font-weight: 500; }
:root[data-theme="dark"] .imp-opt { background: rgba(255, 255, 255, .05); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .imp-opt { background: rgba(255, 255, 255, .05); } }
