:root {
  --bg: #0d1017;
  --bg-2: #141824;
  --panel: #171b28;
  --panel-2: #1d2233;
  --line: #262c40;
  --line-2: #313852;
  --txt: #e8ecf6;
  --txt-2: #99a2bd;
  --txt-3: #6b7490;
  --acc: #6c8cff;
  --acc-2: #9a7cff;
  --ok: #33d69f;
  --warn: #ffb020;
  --danger: #ff5c6c;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button, input, textarea { font-family: inherit; font-size: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ============ 登录页 ============ */
.login-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.login-bg {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(45% 45% at 25% 25%, rgba(108, 140, 255, .35), transparent 60%),
    radial-gradient(40% 40% at 78% 70%, rgba(154, 124, 255, .32), transparent 62%),
    radial-gradient(35% 35% at 60% 15%, rgba(51, 214, 159, .18), transparent 65%);
  filter: blur(28px);
  animation: float 18s ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3%, -3%, 0) scale(1.08); }
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 34px 32px 26px;
  background: rgba(23, 27, 40, .82);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  z-index: 1;
}

.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.brand-logo {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--acc), var(--acc-2));
  color: #fff;
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(108, 140, 255, .4);
  flex: none;
}
.brand-logo.small { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.brand h1 { margin: 0; font-size: 21px; letter-spacing: .5px; }
.brand-sub { margin: 3px 0 0; color: var(--txt-3); font-size: 12px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 7px; color: var(--txt-2); font-size: 12.5px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input:focus {
  border-color: var(--acc);
  background: #10131d;
  box-shadow: 0 0 0 3px rgba(108, 140, 255, .16);
}
.pwd-box { position: relative; }
.pwd-box input { padding-right: 60px; }
.pwd-toggle {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--txt-3);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 12.5px;
}
.pwd-toggle:hover { color: var(--acc); background: rgba(108, 140, 255, .1); }

.remember {
  display: flex; align-items: center; gap: 8px;
  margin: 4px 0 20px;
  color: var(--txt-2); font-size: 12.5px;
  cursor: pointer; user-select: none;
}
.remember input { accent-color: var(--acc); width: 15px; height: 15px; }

.btn-primary {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform .12s, box-shadow .2s, opacity .2s;
  box-shadow: 0 8px 22px rgba(108, 140, 255, .32);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(108, 140, 255, .42); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.btn-primary.small { width: auto; padding: 8px 20px; border-radius: 9px; letter-spacing: 0; font-size: 13px; }

.login-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: rgba(255, 92, 108, .12);
  border: 1px solid rgba(255, 92, 108, .35);
  border-radius: 9px;
  color: #ff9aa5;
  font-size: 12.5px;
}
.login-tip { margin: 16px 0 0; text-align: center; color: var(--txt-3); font-size: 11.5px; }

/* ============ 主界面 ============ */
.app { display: flex; flex-direction: column; height: 100%; }

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  flex: none;
  flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.app-title { font-weight: 700; font-size: 15px; letter-spacing: .4px; }
.app-sub { font-size: 11.5px; color: var(--txt-3); margin-top: 1px; }
.app-sub.online { color: var(--ok); }
.app-sub.offline { color: var(--warn); }

.topbar-search { flex: 1; min-width: 160px; position: relative; }
/* 诱饵输入框：挪到屏幕外，只用来吸走浏览器的账号自动填充 */
.decoy-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---- 筛选提示条 ---- */
.filter-hint {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(255, 176, 32, .1);
  border-bottom: 1px solid rgba(255, 176, 32, .32);
  font-size: 12.5px;
  color: var(--warn);
}
.filter-hint #filter-hint-text { flex: 1; min-width: 0; }
.filter-hint b { color: var(--txt); }
.topbar-search input {
  width: 100%;
  padding: 9px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
}
.topbar-search input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(108, 140, 255, .14); }

.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.user-chip { font-size: 12.5px; color: var(--txt-2); }
.sess-chip { font-size: 11px; color: var(--txt-3); }
.btn-ghost {
  padding: 7px 13px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--txt-2);
  cursor: pointer;
  transition: all .16s;
  text-decoration: none;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); background: rgba(108, 140, 255, .08); }
.btn-ghost.danger:hover { border-color: var(--danger); color: var(--danger); background: rgba(255, 92, 108, .08); }
.btn-ghost.tiny { padding: 4px 10px; font-size: 12px; border-radius: 7px; }

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr);   /* 关键：让面板严格等于可视高度，内部列表才能滚动 */
  gap: 14px;
  padding: 12px 16px 16px;
  overflow: hidden;
  min-height: 0;
}
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: max-content;
    overflow: auto;
    height: 100%;
  }
  .panel { max-height: none !important; }
  .list { max-height: 52vh; }
}

.panel {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; flex: none;
}
.panel-head h2 { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: .3px; }
.count {
  display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 6px;
  background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: 20px; font-size: 11px; color: var(--txt-2); text-align: center;
}
.hint { font-size: 11.5px; color: var(--txt-3); }

/* ---- 筛选栏 ---- */
.filters { flex: none; margin-bottom: 10px; }
.seg-sm .seg-item { padding: 4px 12px; font-size: 12px; }

.composer { flex: none; margin-bottom: 10px; }
.composer textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  resize: vertical;
  min-height: 60px;
  max-height: 180px;
  line-height: 1.6;
}
.composer textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(108, 140, 255, .14); }
.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--txt-2);
  cursor: pointer;
  user-select: none;
  flex: none;
}
.check-inline input { accent-color: var(--acc); width: 15px; height: 15px; }

.composer-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

/* ---- 加载更多 ---- */
.load-more {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px dashed var(--line);
}

/* ---- 批量操作栏 ---- */
.batchbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  background: rgba(108, 140, 255, .08);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.batchbar-actions { display: flex; gap: 7px; }

.dropzone {
  flex: none;
  padding: 20px;
  margin-bottom: 12px;
  text-align: center;
  border: 1.5px dashed var(--line-2);
  border-radius: 12px;
  background: rgba(108, 140, 255, .03);
  cursor: pointer;
  transition: all .18s;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--acc);
  background: rgba(108, 140, 255, .1);
}
.dz-icon { font-size: 20px; color: var(--acc); }
.dz-text { margin-top: 4px; font-size: 13px; color: var(--txt-2); }
.dz-text b { color: var(--txt); }
.dz-sub { margin-top: 4px; font-size: 11.5px; color: var(--txt-3); }

.upload-progress {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; padding: 9px 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  flex: none;
}
.up-name { flex: 1; font-size: 12px; color: var(--txt-2); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.up-bar { width: 110px; height: 6px; background: var(--panel-2); border-radius: 4px; overflow: hidden; flex: none; }
.up-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acc), var(--acc-2)); transition: width .2s; }
.up-pct { font-size: 11.5px; color: var(--txt-2); width: 36px; text-align: right; flex: none; }

/* ---- 存储空间 ---- */
.storage {
  flex: none;
  margin-bottom: 12px;
  padding: 10px 12px 11px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.storage-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--txt-2); margin-bottom: 8px;
}
.storage-pct {
  font-weight: 700; color: var(--txt);
  font-variant-numeric: tabular-nums;
}
.storage-bar {
  height: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.storage-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--acc), var(--acc-2));
  transition: width .35s cubic-bezier(.4, 0, .2, 1), background .3s;
}
.storage-bar i.warn { background: linear-gradient(90deg, var(--warn), #ff8a3d); }
.storage-bar i.full { background: linear-gradient(90deg, #ff8a3d, var(--danger)); }
.storage-foot {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 8px;
  font-size: 11.5px; color: var(--txt-3);
}
.storage-foot b {
  color: var(--txt);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.storage-foot .free b { color: var(--ok); }
.storage.low .storage-foot .free b { color: var(--warn); }
.storage.crit .storage-foot .free b { color: var(--danger); }

/* ---- 列表 ---- */
.list {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 140px;
  padding-right: 4px;
  overscroll-behavior: contain;
}
.list::-webkit-scrollbar { width: 8px; }
.list::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
.list::-webkit-scrollbar-track { background: transparent; }

.empty { padding: 34px 12px; text-align: center; color: var(--txt-3); font-size: 12.5px; line-height: 1.9; }

.card {
  position: relative;
  padding: 12px 13px;
  margin-bottom: 9px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: border-color .16s, transform .16s;
  animation: pop .22s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.card:hover { border-color: var(--line-2); }
.card.pinned { border-color: rgba(255, 176, 32, .45); background: rgba(255, 176, 32, .05); }

.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.card-time { font-size: 11.5px; color: var(--txt-3); }
.card-actions { margin-left: auto; display: flex; gap: 4px; opacity: .45; transition: opacity .16s; }
.card:hover .card-actions, .card:focus-within .card-actions { opacity: 1; }
@media (hover: none) { .card-actions { opacity: 1; } }

.icon-btn {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2);
  border-radius: 7px; color: var(--txt-3); cursor: pointer;
  font-size: 12px; transition: all .14s;
}
.icon-btn:hover { color: var(--acc); border-color: var(--acc); background: rgba(108, 140, 255, .1); }
.icon-btn.del:hover { color: var(--danger); border-color: var(--danger); background: rgba(255, 92, 108, .1); }
.icon-btn.on { color: var(--warn); border-color: rgba(255, 176, 32, .5); }

.card-body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.68;
  font-size: 13.5px;
}
.card-check {
  width: 17px; height: 17px; flex: none;
  accent-color: var(--acc);
  cursor: pointer;
  margin: 0;
}
.trash-item.sel {
  border-color: var(--acc);
  background: rgba(108, 140, 255, .1);
}
.trash-check { margin-top: 2px; }
.kind-badge {
  display: inline-block;
  padding: 0 6px;
  margin-right: 6px;
  border-radius: 5px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--txt-2);
  font-size: 10.5px;
  vertical-align: 1px;
}
.load-more button:disabled,
.batchbar button:disabled { opacity: .45; cursor: not-allowed; }

.card-edit { width: 100%; }
.card-edit textarea {
  width: 100%; min-height: 70px; padding: 9px 11px;
  background: var(--bg-2); border: 1px solid var(--acc);
  border-radius: 9px; outline: none; resize: vertical; line-height: 1.6;
}
.card-edit .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

/* ---- 文件 ---- */
.file-card { display: flex; align-items: center; gap: 11px; }
.file-icon {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px; font-size: 15px; font-weight: 700;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--txt-2);
}
.file-icon.img { color: #33d69f; border-color: rgba(51, 214, 159, .4); }
.file-icon.doc { color: #6c8cff; border-color: rgba(108, 140, 255, .4); }
.file-icon.zip { color: #ffb020; border-color: rgba(255, 176, 32, .4); }
.file-icon.med { color: #ff7ab8; border-color: rgba(255, 122, 184, .4); }
.file-meta { flex: 1; min-width: 0; }
.file-name {
  font-size: 13.5px; color: var(--txt);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-name a { color: inherit; text-decoration: none; }
.file-name a:hover { color: var(--acc); text-decoration: underline; }
.file-sub { font-size: 11.5px; color: var(--txt-3); margin-top: 3px; }
.file-actions { display: flex; gap: 5px; flex: none; }

/* ---- 弹窗 ---- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.modal-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .68); backdrop-filter: blur(3px); }
.modal-box {
  position: relative;
  width: min(920px, 100%);
  max-height: 88vh;
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 15px; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.modal-head > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-head > div { display: flex; gap: 7px; flex: none; }
.modal-body {
  flex: 1; overflow: auto; padding: 15px;
  display: grid; place-items: center;
}
.modal-body img, .modal-body video { max-width: 100%; max-height: 74vh; border-radius: 8px; }
.modal-body iframe { width: 100%; height: 74vh; border: 0; background: #fff; border-radius: 8px; }
.modal-body pre {
  width: 100%; margin: 0; padding: 14px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px;
  white-space: pre-wrap; word-break: break-word;
  font-size: 12.5px; line-height: 1.7; color: var(--txt-2);
}

/* ---- 确认弹窗 ---- */
.confirm-box {
  position: relative;
  width: min(400px, 100%);
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: pop .18s ease-out;
}
.confirm-box h3 { margin: 0 0 10px; font-size: 15.5px; }
.confirm-box p {
  margin: 0 0 20px;
  color: var(--txt-2);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-danger {
  padding: 8px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s, transform .12s;
}
.btn-danger:hover { filter: brightness(1.12); }
.btn-danger:active { transform: translateY(1px); }

/* ---- 顶栏角标 ---- */
.badge {
  display: inline-block;
  min-width: 17px;
  padding: 1px 5px;
  margin-left: 5px;
  background: var(--danger);
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.5;
  vertical-align: 1px;
}

/* ---- 抽屉式面板（回收站 / 设置） ---- */
.sheet {
  position: relative;
  width: min(720px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: pop .2s ease-out;
}
.sheet-head {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  flex: none;
  flex-wrap: wrap;
}
.sheet-head h3 { margin: 0; font-size: 15px; font-weight: 650; flex: none; }
.sheet-actions { margin-left: auto; display: flex; gap: 7px; flex: none; }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 16px; min-height: 0; }
.sheet-body::-webkit-scrollbar { width: 8px; }
.sheet-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
.sheet-foot {
  flex: none;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--txt-3);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* 分段切换器 */
.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  flex: none;
}
.seg-item {
  padding: 5px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--txt-2);
  font-size: 12.5px;
  cursor: pointer;
  transition: all .15s;
}
.seg-item:hover { color: var(--txt); }
.seg-item.active {
  background: var(--panel-2);
  color: var(--txt);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

/* 回收站条目 */
.trash-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  margin-bottom: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.trash-main { flex: 1; min-width: 0; }
.trash-text {
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 4.8em;
  overflow: hidden;
}
.trash-meta { font-size: 11.5px; color: var(--txt-3); margin-top: 5px; }
.trash-acts { display: flex; gap: 5px; flex: none; }
.expire-chip {
  display: inline-block;
  padding: 0 6px;
  border-radius: 20px;
  background: rgba(255, 176, 32, .12);
  border: 1px solid rgba(255, 176, 32, .3);
  color: var(--warn);
  font-size: 10.5px;
}

/* 设置面板 */
.set-block { margin-bottom: 24px; }
.set-block:last-child { margin-bottom: 0; }
.set-block h4 {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--txt);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.set-form { max-width: 380px; }
.set-form .btn-primary { margin-top: 4px; }

.sess-list { margin-bottom: 12px; }
.sess-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.sess-item.current { border-color: rgba(51, 214, 159, .45); }
.sess-icon {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  font-size: 14px;
}
.sess-item.current .sess-icon { color: var(--ok); border-color: rgba(51, 214, 159, .4); }
.sess-info { flex: 1; min-width: 0; }
.sess-name {
  font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sess-sub { font-size: 11.5px; color: var(--txt-3); margin-top: 3px; }
.self-tag {
  display: inline-block;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 20px;
  background: rgba(51, 214, 159, .14);
  border: 1px solid rgba(51, 214, 159, .35);
  color: var(--ok);
  font-size: 10.5px;
}

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  padding: 11px 20px; z-index: 90;
  background: var(--panel-2); border: 1px solid var(--line-2);
  border-radius: 10px; box-shadow: var(--shadow);
  font-size: 13px; color: var(--txt);
  animation: pop .2s ease-out;
  max-width: 88vw; text-align: center;
}
.toast.ok { border-color: rgba(51, 214, 159, .5); }
.toast.err { border-color: rgba(255, 92, 108, .5); }
