/* 云丹漫剧 · 个人设置（接手方新建）— 深色橙色弹窗 */
.zm-st-mask {
  --g1: #ffa94d; --g2: #f2762b; --panel: #14181c; --panel-2: #1b2026;
  --line: rgba(255, 255, 255, .10); --line-2: rgba(255, 255, 255, .16);
  --t1: #fff; --t2: rgba(255, 255, 255, .64); --t3: rgba(255, 255, 255, .40);
  position: fixed; inset: 0; z-index: 4100; display: grid; place-items: center;
  background: rgba(4, 6, 8, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--t1); animation: zm-st-in .16s ease;
}
@keyframes zm-st-in { from { opacity: 0; } to { opacity: 1; } }

.zm-st-modal { width: min(500px, 94vw); max-height: 92vh; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 40px 100px rgba(0, 0, 0, .7); overflow: hidden; }
.zm-st-head { display: flex; align-items: center; padding: 18px 22px 14px; font-size: 16.5px; font-weight: 700; }
.zm-st-head span { flex: 1; }
.zm-st-x { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .06); color: var(--t2); cursor: pointer; }
.zm-st-x svg { width: 18px; height: 18px; }
.zm-st-x:hover { background: rgba(255, 255, 255, .12); color: var(--t1); }

.zm-st-tabs { display: flex; gap: 6px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.zm-st-tab { display: inline-flex; align-items: center; gap: 7px; padding: 12px 6px; margin-right: 14px; border: 0; background: transparent; color: var(--t3); font-family: inherit; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .14s; }
.zm-st-tab svg { width: 16px; height: 16px; }
.zm-st-tab:hover { color: var(--t1); }
.zm-st-tab.zm-on { color: var(--g1); border-bottom-color: var(--g1); }

.zm-st-body { flex: 1; overflow-y: auto; padding: 22px; }

/* 头像行 */
.zm-st-avrow { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.zm-st-av { position: relative; width: 82px; height: 82px; border-radius: 20px; display: grid; place-items: center; color: #241300; font-weight: 700; font-size: 30px; overflow: hidden; flex: none; }
.zm-st-av img { width: 100%; height: 100%; object-fit: cover; }
.zm-st-av-cam { position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; display: grid; place-items: center; border: 3px solid var(--panel); border-radius: 999px; background: var(--g1); color: #241300; cursor: pointer; }
.zm-st-av-cam svg { width: 15px; height: 15px; }
.zm-st-avtip { display: flex; flex-direction: column; gap: 3px; }
.zm-st-avtip b { font-size: 16px; }
.zm-st-avtip span { font-size: 12.5px; color: var(--t3); }
.zm-st-mini { align-self: flex-start; margin-top: 6px; padding: 6px 13px; border: 0; border-radius: 8px; background: var(--g1); color: #241300; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }

.zm-st-lb { display: block; font-size: 12.5px; color: var(--t2); font-weight: 600; margin: 18px 0 8px; }
.zm-st-sec { font-size: 14px; font-weight: 700; color: var(--t1); }
.zm-st-in { width: 100%; box-sizing: border-box; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .22); color: var(--t1); font-family: inherit; border-radius: 10px; padding: 11px 13px; font-size: 13.5px; outline: none; transition: border-color .14s; }
.zm-st-in:focus { border-color: var(--g1); }
.zm-st-inrow { display: flex; gap: 10px; }
.zm-st-inrow .zm-st-in { flex: 1; }
.zm-st-btn { flex: none; padding: 0 18px; border: 0; border-radius: 10px; background: var(--g1); color: #241300; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: filter .14s; }
.zm-st-btn:hover { filter: brightness(1.08); }
.zm-st-btn:disabled { opacity: .55; cursor: default; }
.zm-st-btn-wide { width: 100%; padding: 12px; margin-top: 18px; }
.zm-st-note { font-size: 12px; color: var(--t3); margin-top: 10px; line-height: 1.7; }

/* 页面外观：三态自绘单选，不调用浏览器原生下拉 */
.zm-st-theme-current { display: flex; align-items: center; gap: 8px; margin: 18px 0 12px; padding: 11px 13px; border-radius: 11px; background: color-mix(in srgb, var(--g1) 11%, transparent); color: var(--t2); font-size: 12.5px; }
.zm-st-theme-current b { color: var(--g1); font-size: 13.5px; }
.zm-st-theme-current i { margin-left: auto; color: var(--t3); font-style: normal; font-size: 11.5px; }
.zm-st-theme-grid { display: grid; gap: 9px; }
.zm-st-theme-choice { width: 100%; min-height: 64px; display: grid; grid-template-columns: 40px minmax(0,1fr) 24px; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035); color: var(--t1); font: inherit; text-align: left; cursor: pointer; transition: background .15s ease,border-color .15s ease,transform .15s ease; }
.zm-st-theme-choice:hover { background: rgba(255,255,255,.075); border-color: var(--line-2); transform: translateY(-1px); }
.zm-st-theme-choice.zm-on { border-color: color-mix(in srgb,var(--g1) 55%,transparent); background: color-mix(in srgb,var(--g1) 12%,transparent); }
.zm-st-theme-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.065); color: var(--g1); }
.zm-st-theme-ic svg { width: 21px; height: 21px; }
.zm-st-theme-copy { min-width: 0; }
.zm-st-theme-copy b { display: block; font-size: 14px; }
.zm-st-theme-copy i { display: block; margin-top: 3px; color: var(--t3); font-size: 11.5px; font-style: normal; line-height: 1.45; }
.zm-st-theme-choice em { width: 24px; height: 24px; display: grid; place-items: center; color: var(--g1); font-style: normal; }
.zm-st-theme-choice em svg { width: 18px; height: 18px; }

.zm-st-foot { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .16); }
.zm-st-who { display: flex; align-items: center; gap: 10px; flex: 1; }
.zm-st-who-av { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #241300; font-weight: 700; overflow: hidden; }
.zm-st-who-av img { width: 100%; height: 100%; object-fit: cover; }
.zm-st-who b { font-size: 14px; display: block; }
.zm-st-who i { font-size: 11.5px; color: var(--t3); font-style: normal; }
.zm-st-logout { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border: 1px solid rgba(255, 92, 92, .4); border-radius: 10px; background: rgba(255, 92, 92, .1); color: #ff9a9a; font-family: inherit; font-size: 13px; cursor: pointer; }
.zm-st-logout svg { width: 15px; height: 15px; }
.zm-st-logout:hover { background: rgba(255, 92, 92, .2); }

/* 裁剪 */
.zm-st-crop-mask { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(4, 6, 8, .82); backdrop-filter: blur(8px); }
.zm-st-crop { width: 320px; padding: 20px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel); }
.zm-st-crop-h { font-size: 15px; font-weight: 700; margin-bottom: 16px; text-align: center; }
.zm-st-crop-view { position: relative; width: 260px; height: 260px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #000; cursor: grab; user-select: none; }
.zm-st-crop-view:active { cursor: grabbing; }
.zm-st-crop-view img { position: absolute; top: 0; left: 0; max-width: none; user-select: none; -webkit-user-drag: none; }
.zm-st-crop-ring { position: absolute; inset: 0; pointer-events: none; box-shadow: 0 0 0 999px rgba(0, 0, 0, .45); border-radius: 999px; }
.zm-st-crop-zoom { display: flex; align-items: center; gap: 10px; margin: 16px 4px 4px; color: var(--t3); }
.zm-st-crop-zoom input { flex: 1; accent-color: var(--g1); }
.zm-st-crop-foot { display: flex; gap: 10px; margin-top: 16px; }
.zm-st-crop-foot button { flex: 1; padding: 10px; border-radius: 10px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.zm-st-cancel { border: 1px solid var(--line-2); background: transparent; color: var(--t2); }
.zm-st-cancel:hover { background: rgba(255, 255, 255, .06); color: var(--t1); }
.zm-st-crop-foot .zm-st-btn { border: 0; }

.zm-st-toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(10px); z-index: 4300; padding: 11px 20px; border-radius: 999px; background: rgba(20, 24, 29, .96); border: 1px solid var(--line-2); color: #fff; font-size: 13.5px; box-shadow: 0 14px 44px rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.zm-st-toast.zm-on { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 520px) { .zm-st-modal { width: 96vw; } }
