/* Reuse Mail.com components; only Session-specific differences live here. */
.session-page .session-account-heading { gap: 4px; }
.session-account-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.session-page .session-header-panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  margin: -12px 0 -4px;
  padding: 7px 8px;
  gap: 6px;
  overflow: hidden;
  border: 1px solid #dce3ec;
  border-radius: 14px;
  background: var(--surface-soft);
  box-shadow: inset 0 1px 2px rgba(31, 45, 61, 0.02);
}
.session-header-panel > strong { flex: 0 0 auto; white-space: nowrap; }
.format-pills { --format-gap: 30px; flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--format-gap); }
.session-page .format-pill {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  height: 28px;
  padding: 0 4px;
  border: 1px solid var(--pill-border);
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-color);
  font: 600 12px/1.2 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: box-shadow 150ms ease, opacity 150ms ease;
}
.format-pill-number { flex: 0 0 auto; min-width: 7px; font: 700 11px/1 Consolas, "Courier New", monospace; opacity: .75; }
.format-pills > .format-pill:not(:last-child)::after {
  content: "----";
  position: absolute;
  left: calc(100% + 1px);
  top: 50%;
  transform: translateY(-50%);
  width: var(--format-gap);
  color: #7b8ba1;
  font: 500 12px/14px Consolas, "Courier New", monospace;
  text-align: center;
  letter-spacing: 0;
  pointer-events: none;
}
.format-pill[data-format-field="email"] { --pill-bg: #eaf2ff; --pill-border: #bfd7fb; --pill-color: #245ca8; }
.format-pill[data-format-field="gpt-password"] { --pill-bg: #f2ecff; --pill-border: #d8c6f4; --pill-color: #7040a3; }
.format-pill[data-format-field="mail-password"] { --pill-bg: #e5f6f1; --pill-border: #b2dfd1; --pill-color: #176b55; }
.format-pill[data-format-field="totp"] { --pill-bg: #fff2df; --pill-border: #f1d19f; --pill-color: #965a15; }
.format-pill[data-format-field="ms-client-id"] { --pill-bg: #e7f7fc; --pill-border: #b1dfe9; --pill-color: #176e88; }
.format-pill[data-format-field="ms-refresh-token"] { --pill-bg: #ffeaf1; --pill-border: #efbfd0; --pill-color: #a34369; }
.session-page .format-pill:hover { box-shadow: 0 2px 5px #26384f14; }
.session-page .format-pill:focus-visible { outline: 2px solid var(--pill-color); outline-offset: 2px; }
.session-page .format-pill.is-dragging { opacity: .35; }
.session-page .format-pill-ghost { position: fixed; z-index: 1000; pointer-events: none; margin: 0; cursor: grabbing; box-shadow: 0 7px 18px #26384f30; transition: none; }
.session-page .format-pill.is-demo-source { background: transparent; border-color: transparent; color: transparent; box-shadow: none; }
.session-page .format-pill-demo { position: fixed; z-index: 1000; pointer-events: none; margin: 0; transition: none; will-change: transform; }
.format-demo-hint { position: fixed; z-index: 1001; pointer-events: none; transform: translateX(-50%); padding: 5px 10px; border: 1px solid #dae5f5; border-radius: 8px; background: #fff; color: #42648d; box-shadow: 0 3px 10px #26384f0d; font: 11px/16px "Microsoft YaHei", "PingFang SC", Arial, sans-serif; white-space: nowrap; }
@media (max-width: 760px) {
  .session-page .session-account-heading { align-items: flex-start; }
  .session-page .session-header-panel { height: auto; min-height: 44px; margin: 0; padding: 10px; flex-direction: column; align-items: stretch; gap: 8px; }
  .format-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .session-page .format-pill { height: 32px; padding: 0 4px; gap: 4px; font-size: 11px; }
  .format-pills > .format-pill:nth-child(2)::after { left: calc(-1 * var(--format-gap) - 1px); top: calc(100% + 12px); }
  .session-account-heading > .count-chip { margin-top: 8px; }
}
@media (max-width: 380px) {
  .session-page .session-header-panel { padding-inline: 6px; }
  .session-page .format-pill { padding: 0 1px; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .session-page .format-pill { transition: none; } }
.session-mode-chip { padding: 4px 8px; border: 1px solid #e6ebf2; border-radius: 6px; color: #64748b; background: #f8fafc; font-size: 11px; white-space: nowrap; }
.session-page .entry-grid {
  grid-template-areas: "accounts log" "hint note" "confirmation confirmation" "controls controls";
}
.session-page:not(.twofa-page) .entry-grid { grid-template-areas: "accounts log" "controls controls"; }
.session-page .task-log-panel { height: 267px; }
.session-note { grid-area: note; min-width: 0; margin: 0; padding: 12px 0 10px; color: #69788c; font-size: 11px; line-height: 1.55; }
.confirm-row { grid-area: confirmation; display: flex; align-items: flex-start; gap: 8px; color: #69788c; font-size: 11px; line-height: 1.7; cursor: pointer; }
.confirm-row input { flex: 0 0 auto; width: 14px; height: 14px; margin: 2px 0 0; accent-color: var(--accent); }
.session-page .task-log-live { flex: 0 0 auto; color: #8b95a3; }
.session-page .task-log-live i { background: currentColor; }
.session-page .task-log-live.connected { color: var(--success); }
.session-page .task-log-live.disconnected { color: var(--danger); }
.session-page .task-log-entry[data-state="succeeded"] i { background: var(--success); }
.session-page .task-log-entry[data-state="running"] i { background: #2f7dff; }
.session-page .task-log-entry b { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.session-page .task-log { position: relative; overscroll-behavior-y: contain; }
.session-page .task-log-entry, .session-page .task-log-empty { animation: sessionLogIn 240ms ease both; }
.session-page .task-log-empty { position: absolute; inset: 0; pointer-events: none; }
.session-page .task-log .is-leaving { animation: sessionLogOut 160ms ease both; pointer-events: none; }
.session-page .task-log-live.connected i { animation: sessionLogPulse 1.8s ease-out infinite; }
@keyframes sessionLogIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sessionLogOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-4px); }
}
@keyframes sessionLogPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 157, 100, .35); }
  50% { box-shadow: 0 0 0 5px rgba(31, 157, 100, 0); }
}
.session-page .result-meta { flex-wrap: wrap; }
.session-page .results-panel, .session-page .result-list { min-height: 0; }
.session-page .result-heading { min-height: 46px; padding: 6px 20px; }
.session-page .result-item { min-height: 0; padding: 8px 20px; }
.session-page .result-detail { margin-top: 3px; }
.session-page .result-action.retry-action { display:inline-flex; align-items:center; gap:5px; color:#1765b1; border-color:#bfd7ef; background:#eef6ff; font-weight:600; }
.session-page .result-action.retry-action::before { content:'↻'; font-size:16px; line-height:1; }
.session-page .result-action.retry-action:hover:not(:disabled) { background:#deedff; border-color:#83b2e0; }
.session-page .result-action.retry-action:disabled { opacity:.5; cursor:not-allowed; }
.session-page .result-progress { margin-top: 6px; }
.session-page .result-progress-heading { margin-bottom: 4px; }
.session-page .result-empty { min-height: 80px; padding: 20px; }
.session-page .state-chip.is-running { color: #b5661c; background: #fff1e8; }
.session-page .result-item[data-progress-state="idle"] .result-progress-track i::after { display: none; }
.session-page .progress-track i, .session-page .result-progress-track i { transition: transform 300ms ease; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: #243244; color: white; max-width: calc(100% - 40px); padding: 12px 20px; border-radius: 9px; box-shadow: 0 8px 30px #0002; font-size: 13px; z-index: 30; }
#resultDialog { width: min(680px, calc(100% - 30px)); max-height: calc(100dvh - 30px); overflow: auto; border: 1px solid #e4e8ee; border-radius: 14px; padding: 23px; }
#resultDialog::backdrop { background: #1f2d3d55; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { font-size: 16px; }
#resultDialog p { font-size: 12px; color: #7b8595; }
#resultText { width: 100%; height: 260px; resize: vertical; border: 1px solid #e2e7ed; border-radius: 8px; padding: 10px; font: 12px/1.5 Consolas, monospace; }
@media (max-width: 1240px) {
  .session-page .entry-grid { grid-template-areas: "accounts" "hint" "log" "note" "confirmation" "controls"; }
  .session-page:not(.twofa-page) .entry-grid { grid-template-areas: "accounts" "log" "controls"; }
  .session-page .task-log-panel { height: 220px; }
  .session-page .product-nav-shell > .product-nav-title { display: none; }
  .session-page .product-nav-actions { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .session-page .product-nav-actions::-webkit-scrollbar { display: none; }
}
@media (max-width: 760px) {
  .session-page .task-log-panel { height: 180px; margin-top: 4px; }
  .session-page .result-item { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .session-page .result-meta { max-width: 100%; justify-content: flex-start; }
  .session-page .task-log-heading > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .session-page .task-log-entry { grid-template-columns: 8px minmax(0, 1fr); }
  .session-page .task-log-entry b { grid-column: 2; max-width: none; white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .session-page .progress-track i, .session-page .result-progress-track i { transition: none; }
  .session-page .task-log-entry, .session-page .task-log-empty, .session-page .task-log .is-leaving, .session-page .task-log-live.connected i { animation: none; }
}

/* Same log presentation as batch query and 2FA; scoped to the Session panel. */
.session-page .session-live-log { box-sizing:border-box; min-width:0; height:318px; min-height:318px; max-height:318px; display:grid; grid-template-rows:auto minmax(118px,1fr); gap:8px; padding:16px 18px; margin:0; border:1px solid #dce3ec; border-radius:16px; background:#fbfcfe; overflow:hidden; box-shadow:inset 0 1px 2px rgba(31,45,61,.02); color:#071426; font:400 16px/normal "Microsoft YaHei","PingFang SC",Arial,sans-serif; }
.session-live-log .batch-log-heading { min-height:30px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.session-live-log .batch-log-heading > div { min-width:0; display:flex; align-items:baseline; gap:9px; }
.session-live-log .batch-log-heading strong { flex:0 0 auto; white-space:nowrap; color:#26384f; font-size:13px; }
.session-live-log .batch-log-heading span { color:#8290a2; font-size:11px; }
.session-live-log #taskLogState { flex:0 0 auto; white-space:nowrap; }
.session-live-log .batch-log-live { display:inline-flex; align-items:center; gap:5px; flex:0 0 auto; color:#16a36a !important; font-weight:700; }
.session-live-log .batch-log-live i { width:7px; height:7px; display:inline-block; border-radius:50%; background:#16a36a; box-shadow:0 0 0 0 rgba(31,157,100,.35); animation:batchLogPulse 1.8s ease-out infinite; }
.session-live-log .batch-log-live.disconnected { color:#8b95a3 !important; }
.session-live-log .batch-log-live.disconnected i { background:currentColor; animation:none; }
.session-live-log .batch-log { box-sizing:content-box; height:0; min-height:236px; max-height:100%; margin:0; overflow:auto; padding:4px 4px 4px 0; scrollbar-width:thin; scrollbar-color:#cbd7e6 transparent; }
.session-live-log .batch-log-empty { min-height:236px; display:grid; place-items:center; color:#8a97a8; font-size:12px; text-align:center; }
.session-live-log .batch-log-entry { min-height:25px; box-sizing:border-box; padding:4px 5px; display:grid; grid-template-columns:50px 7px minmax(0,1fr); align-items:baseline; gap:7px; border-radius:7px; color:#617086; font-size:11px; line-height:1.45; animation:batchLogEntryIn 240ms ease both; }
.session-live-log .batch-log-entry:hover { background:#f2f6fb; }
.session-live-log .batch-log-time { color:#8a97a8; font-variant-numeric:tabular-nums; }
.session-live-log .batch-log-dot { width:7px; height:7px; align-self:center; border-radius:50%; background:#8b95a3; }
.session-live-log .batch-log-entry[data-level="running"] .batch-log-dot { background:#2f7dff; animation:viewerPulse 1.2s ease-out infinite; }
.session-live-log .batch-log-entry[data-level="success"] .batch-log-dot { background:#1f9d64; }
.session-live-log .batch-log-entry[data-level="error"] .batch-log-dot { background:#e5484d; }
.session-live-log .batch-log-message { min-width:0; overflow-wrap:anywhere; }
@keyframes batchLogPulse { 0%,100% { box-shadow:0 0 0 0 rgba(31,157,100,.35); } 50% { box-shadow:0 0 0 5px rgba(31,157,100,0); } }
@keyframes batchLogEntryIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:translateY(0); } }
@keyframes viewerPulse { 70% { box-shadow:0 0 0 9px rgba(36,99,235,0); } 100% { box-shadow:0 0 0 0 rgba(36,99,235,0); } }
@media (min-width:1241px) { .session-page:is(:not(.twofa-page), .session-layout) #accountInput { height:281px; } }
@media (max-width:980px) { .session-page .session-live-log { height:230px; min-height:230px; max-height:230px; } .session-live-log .batch-log { box-sizing:border-box; height:auto; min-height:0; } .session-live-log .batch-log-empty { min-height:100%; } }
@media (max-width:720px) { .session-page .session-live-log { height:220px; min-height:220px; max-height:220px; border-radius:14px; } }
@media (prefers-reduced-motion:reduce) { .session-live-log .batch-log-entry,.session-live-log .batch-log-dot,.session-live-log .batch-log-live i { animation:none; } }

/* Short, visible instructions with comfortable spacing above the results. */
.session-page:is(:not(.twofa-page), .session-layout) .format-pill { padding:0; transition:background-color 280ms ease,border-color 280ms ease,color 280ms ease,box-shadow 180ms ease,opacity 180ms ease; }
.session-page:is(:not(.twofa-page), .session-layout) .format-pill-main { width:100%; height:100%; min-width:0; display:flex; align-items:center; justify-content:center; gap:4px; padding:0 4px; border:0; border-radius:inherit; background:transparent; color:inherit; font:inherit; white-space:nowrap; cursor:grab; touch-action:none; }
.session-page:is(:not(.twofa-page), .session-layout) .format-pill-main:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.session-page:is(:not(.twofa-page), .session-layout) .format-pill-toggle { position:absolute; top:-7px; right:-5px; z-index:2; width:18px; height:18px; display:grid; place-items:center; padding:0; border:1px solid var(--pill-border); border-radius:50%; background:#fff; color:var(--pill-color); box-shadow:0 1px 3px #26384f18; cursor:pointer; touch-action:manipulation; transition:background-color 220ms ease,color 220ms ease,border-color 220ms ease,box-shadow 180ms ease; }
.session-page:is(:not(.twofa-page), .session-layout) .format-pill-toggle::before { content:""; position:absolute; inset:-3px; border-radius:50%; }
.session-page:is(:not(.twofa-page), .session-layout) .format-pill-toggle span { position:absolute; left:50%; top:50%; width:10px; height:10px; font-size:0; line-height:0; transform:translate(-50%,-50%) rotate(45deg); transform-origin:50% 50%; transition:transform 280ms cubic-bezier(.2,.7,.2,1); pointer-events:none; }
.session-page:is(:not(.twofa-page), .session-layout) .format-pill-toggle span::before,.session-page:is(:not(.twofa-page), .session-layout) .format-pill-toggle span::after { content:""; position:absolute; left:50%; top:50%; background:currentColor; border-radius:1px; transform:translate(-50%,-50%); }
.session-page:is(:not(.twofa-page), .session-layout) .format-pill-toggle span::before { width:10px; height:1.5px; }
.session-page:is(:not(.twofa-page), .session-layout) .format-pill-toggle span::after { width:1.5px; height:10px; }
.session-page:is(:not(.twofa-page), .session-layout) .format-pill-toggle:hover { background:var(--pill-bg); box-shadow:0 0 0 3px #26384f12; }
.session-page:is(:not(.twofa-page), .session-layout) .format-pill-toggle:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.session-page:is(:not(.twofa-page), .session-layout) .format-pill.is-inactive { --pill-bg:#edf0f4; --pill-border:#d4dae3; --pill-color:#758196; }
.session-page:is(:not(.twofa-page), .session-layout) .format-pill.is-inactive .format-pill-toggle span { transform:translate(-50%,-50%) rotate(0deg); }
.session-page:is(:not(.twofa-page), .session-layout) .format-pill-main:disabled,.session-page:is(:not(.twofa-page), .session-layout) .format-pill-toggle:disabled { cursor:wait; }
.session-page:is(:not(.twofa-page), .session-layout) .format-pill.is-demo-source > * { opacity:0; }
.session-page:is(:not(.twofa-page), .session-layout) .format-demo-hint { max-width:calc(100vw - 20px); white-space:normal; text-align:center; box-sizing:border-box; }
@media (max-width:380px) { .session-page:is(:not(.twofa-page), .session-layout) .format-pill-main { gap:2px; padding:0 1px; } }
@media (prefers-reduced-motion:reduce) { .session-page:is(:not(.twofa-page), .session-layout) .format-pill,.session-page:is(:not(.twofa-page), .session-layout) .format-pill-toggle,.session-page:is(:not(.twofa-page), .session-layout) .format-pill-toggle span { transition:none; } }
.session-page:is(:not(.twofa-page), .session-layout) .password-workspace { margin-top:14px; gap:12px; }
.session-page:is(:not(.twofa-page), .session-layout) .entry-panel { padding:16px; }
.session-page:is(:not(.twofa-page), .session-layout) .entry-panel > form { padding:20px; }
.session-page:is(:not(.twofa-page), .session-layout) .session-account-heading { min-height:44px; margin-bottom:8px; }
.session-page:not(.twofa-page) .session-header-panel.has-microsoft { height:auto; min-height:44px; padding-block:12px; container-type:inline-size; }
.session-page:not(.twofa-page) .format-pills.is-microsoft { grid-template-columns:repeat(6,minmax(0,1fr)); }
@container (max-width:700px) {
  .format-pills.is-microsoft { grid-template-columns:repeat(3,minmax(0,1fr)) !important; row-gap:22px; }
  .format-pills.is-microsoft > .format-pill:nth-child(3)::after { left:calc(-1 * var(--format-gap) - 1px); top:calc(100% + 12px); }
}
@media (max-width:760px) {
  .session-page:not(.twofa-page) .format-pills.is-microsoft { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .format-pills.is-microsoft > .format-pill:nth-child(3)::after { left:calc(100% + 1px); top:50%; }
  .format-pills.is-microsoft > .format-pill:nth-child(4)::after { left:calc(-1 * var(--format-gap) - 1px); top:calc(100% + 12px); }
}
.session-page:is(:not(.twofa-page), .session-layout) .session-header-panel { margin:0; }
.session-page:is(:not(.twofa-page), .session-layout) #accountInput { height:212px; min-height:212px; padding:14px 16px; }
.session-page:is(:not(.twofa-page), .session-layout) .session-live-log { height:264px; min-height:264px; max-height:264px; }
.session-page:is(:not(.twofa-page), .session-layout) .session-live-log .batch-log { box-sizing:border-box; height:auto; min-height:0; }
.session-page:is(:not(.twofa-page), .session-layout) .session-live-log .batch-log-empty { min-height:100%; }
.session-page:is(:not(.twofa-page), .session-layout) .session-format-help { min-height:0; padding:8px 0; color:#58697e; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.session-page:is(:not(.twofa-page), .session-layout) .session-format-help p { margin:0; }
.session-page:is(:not(.twofa-page), .session-layout) .session-note { padding:8px 0; font-size:12px; line-height:1.6; color:#58697e; overflow-wrap:anywhere; }
.session-page:is(:not(.twofa-page), .session-layout) .confirm-row { font-size:12px; line-height:1.6; color:#58697e; }
.session-page:is(:not(.twofa-page), .session-layout) .task-controls { margin-top:10px; }
.session-page:is(:not(.twofa-page), .session-layout) .progress-panel { padding:10px 12px 12px; }
.session-page:is(:not(.twofa-page), .session-layout) .task-stats { margin-top:8px; gap:10px; }
.session-page:is(:not(.twofa-page), .session-layout) .task-stats > div { min-height:68px; padding:0 16px 0 54px; gap:8px; border-radius:14px; }
.session-page:is(:not(.twofa-page), .session-layout) .task-stats > div::before { left:14px; width:32px; height:32px; }
.session-page:is(:not(.twofa-page), .session-layout) .task-stats strong { font-size:22px; }
.session-page:is(:not(.twofa-page), .session-layout) .result-heading h2 { font-size:16px; font-weight:750; }
@media (max-width:760px) {
  .session-page:is(:not(.twofa-page), .session-layout) .entry-panel { padding:0; }
  .session-page:is(:not(.twofa-page), .session-layout) .entry-panel > form { padding:14px; border-radius:20px; }
  .session-page:is(:not(.twofa-page), .session-layout) #accountInput { height:176px; min-height:176px; }
  .session-page:is(:not(.twofa-page), .session-layout) .session-live-log { height:200px; min-height:200px; max-height:200px; }
  .session-page:is(:not(.twofa-page), .session-layout) .task-stats > div { min-height:58px; padding:0 10px 0 40px; gap:4px; }
  .session-page:is(:not(.twofa-page), .session-layout) .task-stats > div::before { left:10px; width:24px; height:24px; }
  .session-page:is(:not(.twofa-page), .session-layout) .task-stats strong { font-size:20px; }
}
