:root {
  color-scheme: light;
  --bg: #f7f7f9;
  --surface: #fff;
  --soft: #f2f2f6;
  --ink: #1c1b2a;
  --muted: #626376;
  --line: #e6e5ed;
  --accent: #c6f94a;
  --violet: #5542da;
  --violet-dark: #4431b7;
  --violet-soft: #eeebfd;
  --shadow: 0 22px 52px -38px #30255a58;
  font: 15px/1.55 Geist, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button, input, textarea, select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }
.status { color: #43651f; font-size: .88rem; overflow-wrap: anywhere; }
.status[data-error="true"] { color: #96291d; }
.status:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0,0,0,0); white-space: nowrap; overflow: hidden; border: 0; }
.brand { width: 110px; height: 36px; object-fit: contain; }
.button {
  display: inline-flex;
  gap: .5em;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .62rem .9rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 650;
  transition: background .17s ease, border-color .17s ease;
}
.button.dark { color: #fff; background: var(--violet); }
.button.dark:hover:not(:disabled) { background: var(--violet-dark); }
.button.soft { background: #f8f8fa; border-color: var(--line); }
.button.soft:hover:not(:disabled) { background: var(--violet-soft); border-color: #dcd5fb; }
.button.icon { padding: 0; width: 38px; min-height: 38px; flex: 0 0 auto; }
input:not([type=checkbox]), textarea, select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: .72rem .85rem;
}
input:not([type=checkbox]) { width: 100%; min-width: 0; }
form > label:not(.sr-only) { display: block; font-weight: 630; }

.login-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1rem, 4vw, 3.1rem) clamp(1rem, 7vw, 7rem);
  background:
    radial-gradient(ellipse at 49% 4%, #20164f 5%, #241555de 32%, transparent 71%),
    linear-gradient(156deg, #51418d 5%, #7356b7 45%, #f1c7b5 80%, #f8e6da 100%);
}
.login-shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(#fff5 1.15px, transparent 1.3px) 0 0 / 18px 18px;
  mask-image: linear-gradient(#000 20%, transparent 98%);
  content: "";
}
#login.login-shell {
  grid-template-rows: 1fr;
  place-items: center;
  padding: clamp(12px, 3vw, 24px);
  background:
    radial-gradient(ellipse 68% 72% at 16% 99%, #bc9687bb 0%, #3c263d00 76%),
    radial-gradient(ellipse 62% 80% at 96% 3%, #382c6e 0%, #382c6e00 68%),
    linear-gradient(180deg, #110d35 0%, #2a1c49 40%, #6c594f 81%, #6a6865 100%);
}
#login.login-shell::before { content: none; }
.login-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .99fr) minmax(0, 1.01fr);
  width: min(100%, 1120px);
  min-height: min(740px, calc(100dvh - 48px));
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 75px #130c3266;
}
.login-close {
  position: absolute;
  z-index: 1;
  inset: 24px 24px auto auto;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #5e6069;
}
.login-close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.login-close:hover { background: #f1eef5; color: var(--ink); }
.login-reel {
  position: relative;
  display: flex;
  min-height: 490px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(22px, 3vw, 43px);
  border-radius: 10px;
  background: #2b2742;
  color: #fff;
}

.login-reel-poster,
.login-reel-video,
.login-reel-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.login-reel-poster,
.login-reel-video {
  display: block;
  object-fit: cover;
  object-position: center 37%;
}

.login-reel-poster { z-index: -3; }
.login-reel-video {
  z-index: -2;
  opacity: 0;
  transition: opacity .36s ease;
}
.login-reel[data-has-frame="true"] .login-reel-video { opacity: 1; }

.login-reel-shade {
  z-index: -1;
  background: linear-gradient(180deg, #1f1a35ad 0%, #17172b08 27%, #15112406 48%, #12101cad 73%, #110f1cee 100%);
}

.login-reel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.login-reel-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 3px 10px;
  border: 1px solid #ffffff44;
  border-radius: 999px;
  background: #1d182a6e;
  font-size: 12px;
  font-weight: 590;
}
.login-reel-label span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e3b6a3;
}

.login-reel-control {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #ffffff4d;
  border-radius: 50%;
  background: #1d182a88;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s;
}
.login-reel-control:hover { background: #51467c; }
.login-reel-control-mark {
  width: 0;
  height: 0;
  margin-left: 3px;
  border: 6px solid transparent;
  border-left: 9px solid currentColor;
  border-right: 0;
}
.login-reel-control[aria-pressed="true"] .login-reel-control-mark {
  width: 9px;
  height: 12px;
  margin-left: 0;
  border: 0;
  border-inline: 2px solid currentColor;
}

.login-reel-bottom { padding-top: clamp(110px, 20vh, 245px); }
.login-reel-copy { min-height: 123px; }
.login-reel-copy p,
.login-reel-copy h2 { margin: 0; }
.login-reel-copy h2 {
  margin: 7px 0 8px;
  font-size: clamp(25px, 3.3vw, 45px);
  line-height: 1.18;
  letter-spacing: -.055em;
}
.login-reel-category {
  color: #f2d5c9;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .03em;
}
.login-reel-copy p:last-child { color: #fcf5f1; font-size: clamp(13px, 1.35vw, 16px); }

.login-reel-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.login-clip {
  position: relative;
  min-height: 38px;
  padding: 11px 0 2px;
  border: 0;
  background: transparent;
  color: #d2cedc;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-align: left;
}
.login-clip::before,
.login-clip::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  content: "";
}
.login-clip::before { background: #ffffff4a; }
.login-clip::after {
  background: #f3d1ce;
  transform: scaleX(0);
  transform-origin: left;
}
.login-clip[aria-pressed="true"] { color: #fff; font-weight: 650; }
.login-clip[aria-pressed="true"]::after { transform: scaleX(clamp(.08, var(--clip-progress, 0), 1)); }
.login-clip:focus-visible,
.login-reel-control:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.login-card {
  display: grid;
  gap: .9rem;
  min-width: 0;
  padding: clamp(1.3rem, 4vw, 2.65rem);
  border: 1px solid #ffffffba;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 85px -25px #23144770;
}
.login-card h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -.045em; }
.login-card form { display: grid; gap: .58rem; margin-top: .2rem; }
.login-card label:not(:first-child) { margin-top: .25rem; }
.login-card input { min-height: 48px; background: #fbfafc; }
.login-card .button.dark {
  margin-top: .5rem;
  min-height: 47px;
  color: #17220e;
  background: var(--accent);
  border-color: #add735;
}
.login-card .button.dark:hover:not(:disabled) { background: #b8ed32; }
.login-card .status { min-height: 1.28em; }
.login-content > .login-card {
  align-items: center;
  padding: 58px clamp(28px, 4.5vw, 65px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.login-card-inner { width: min(100%, 374px); margin-inline: auto; }
.login-card-heading { text-align: center; margin-bottom: 22px; }
.login-wordmark { display: block; margin: 0 auto 14px; object-fit: contain; }
.login-card-heading h1 { margin-bottom: 8px; }
.login-card-inner .status { margin-top: .45rem; }
.login-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 17px;
  padding: 4px;
  border-radius: 11px;
  background: #f0eef2;
}
.login-mode {
  min-height: 39px;
  padding: .45rem .5rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
}
.login-mode:hover:not(:disabled) { color: var(--ink); }
.login-mode[aria-selected="true"] {
  border-color: #e7e4eb;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 5px #24184412;
}
.text-link:hover { text-decoration: underline; }
.password-field { position: relative; }
.password-field input { padding-inline-end: 4rem; }
.reveal-password {
  position: absolute;
  inset: 50% .52rem auto auto;
  transform: translateY(-50%);
  padding: .34rem .47rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--violet-dark);
  font-size: .85rem;
}
.reveal-password:hover { background: var(--violet-soft); }

.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui-icon { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.workspace {
  display: grid;
  grid-template-columns: 89px minmax(0, 1fr);
  gap: .8rem;
  min-height: 100dvh;
  padding: .65rem .7rem .65rem .55rem;
  background: var(--bg);
}
.sidebar {
  position: sticky;
  top: .65rem;
  z-index: 5;
  height: calc(100dvh - 1.3rem);
  padding: .75rem .32rem;
  border: 1px solid #eae9f0;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 2px 10px #2e245b08;
}
.brand-link { display: grid; justify-items: center; gap: .11rem; padding: .65rem .2rem; margin-bottom: .9rem; font-size: .72rem; font-weight: 770; }
.rail-logo { width: 31px; height: 30px; }
.sidebar nav { display: grid; gap: .38rem; }
.sidebar nav a {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .28rem;
  min-height: 61px;
  padding: .42rem .13rem;
  border-radius: 11px;
  color: #5f6175;
  font-size: .7rem;
  font-weight: 620;
  line-height: 1.2;
  text-align: center;
}
.sidebar nav a:hover, .sidebar nav [aria-current="page"] { background: var(--violet-soft); color: var(--violet-dark); }
.sidebar nav [aria-current="page"] { font-weight: 750; }
.content { min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  min-height: 57px;
  padding: .15rem clamp(.65rem, 2vw, 1.55rem);
}
.topbar > strong { font-size: clamp(1rem, 1.75vw, 1.28rem); letter-spacing: -.025em; }
.topbar-actions { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.identity-label { color: var(--muted); max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.management-link { white-space: nowrap; min-height: 35px; padding: .35rem .65rem; font-size: .82rem; }
.logout { color: #535776; }
.logout:hover:not(:disabled) { background: var(--violet-soft); }
.credit-chip {
  display: inline-flex;
  gap: .37rem;
  align-items: center;
  min-height: 35px;
  padding: .3rem .7rem;
  border: 1px solid #e6dffc;
  border-radius: 999px;
  color: var(--violet-dark);
  background: var(--violet-soft);
  font-weight: 680;
  white-space: nowrap;
}
.credit-chip:hover { background: #e3ddfa; }
.credit-chip .ui-icon { width: 16px; height: 16px; }
.banner { padding: .62rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.text-link { color: var(--violet-dark); font-size: .88rem; font-weight: 660; }

.mcp-stage {
  position: relative;
  isolation: isolate;
  min-height: calc(100dvh - 80px);
  padding: clamp(2.55rem, 6.3vw, 5.8rem) clamp(.9rem, 4vw, 4rem) 3rem;
}
.mcp-stage::before, .mcp-stage::after {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: min(570px, 74vh);
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 17%, #000 5%, #000a 27%, transparent 74%);
  content: "";
}
.mcp-stage::before { background: radial-gradient(#9997a9 1px, transparent 1.2px) 0 0 / 14px 14px; }
.mcp-stage::after {
  background: radial-gradient(#8571dfbd 1px, transparent 1.2px) 0 0 / 14px 14px;
  mask-image: radial-gradient(ellipse at 42% 16%, #000 3%, transparent 38%);
}
.mcp-clients {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .16rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto clamp(1.8rem, 4.4vw, 4rem);
  padding: .28rem;
  border: 1px solid #e7e5ee;
  border-radius: 999px;
  background: #faf9fbee;
}
.mcp-clients button {
  display: inline-flex;
  align-items: center;
  gap: .48rem;
  min-height: 41px;
  padding: .35rem 1rem;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #4e4e64;
  font-weight: 620;
  transition: background .18s ease;
}
.mcp-clients button:hover { background: var(--violet-soft); }
.mcp-clients button[aria-selected="true"] { border-color: #eeebf7; background: #fff; box-shadow: 0 3px 8px #2318510d; color: var(--violet-dark); }
.mcp-symbol { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; font: 700 .94rem/1 ui-monospace, monospace; }
.mcp-clients [data-client="qwenwork"] .mcp-symbol { color: #7551cf; }
.mcp-clients [data-client="workbuddy"] .mcp-symbol { color: #326fa0; }
.mcp-hero { width: min(100%, 1040px); margin: 0 auto clamp(1.9rem, 5vw, 3.55rem); text-align: center; }
.mcp-hero h1 { font-size: clamp(1.9rem, 4.45vw, 4.13rem); font-weight: 750; line-height: 1.19; letter-spacing: -.065em; text-wrap: balance; }
.mcp-hero p { margin-top: .95rem; color: var(--muted); font-size: clamp(.84rem, 1.5vw, 1.05rem); }
.mcp-client-name, .mcp-brand-name { white-space: nowrap; }
.mcp-hero-symbol, .mcp-hero-brand {
  display: inline-grid;
  place-items: center;
  vertical-align: .13em;
  width: 1.12em;
  height: 1.12em;
  margin-inline-end: .19em;
  border-radius: .26em;
  border: 1px solid #7360ed35;
  background: var(--violet);
  color: #fff;
  font: 750 .78em/1 ui-monospace, "PingFang SC", monospace;
  letter-spacing: -.10em;
  box-shadow: 0 .2em .4em #5342b42d;
  transform: rotate(-7deg);
}
.mcp-hero-symbol[data-client="qwenwork"] { background: #7851cb; }
.mcp-hero-symbol[data-client="workbuddy"] { background: #2a6799; }
.mcp-hero-brand { background: #fff; border-color: var(--line); transform: rotate(7deg); }
.mcp-hero-brand svg { width: 72%; height: 72%; }
.mcp-card {
  width: min(100%, 780px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #eae7f1;
  border-radius: 21px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.mcp-card-top, .mcp-address { display: flex; align-items: center; gap: .6rem 1rem; padding: .9rem clamp(.9rem, 2.7vw, 1.35rem); }
.mcp-card-top { justify-content: space-between; }
.mcp-card-top h2 { min-width: 0; font-size: clamp(1rem, 1.8vw, 1.26rem); font-weight: 690; letter-spacing: -.02em; }
.mcp-copy { flex: none; color: #fff; background: var(--violet); --copy-fill: var(--violet); }
.mcp-copy:hover { background: var(--violet-dark); --copy-fill: var(--violet-dark); }
.mcp-copy.is-copied, .mcp-copy.is-copied:hover {
  color: #fff;
  background: #27844d;
  --copy-fill: #27844d;
}
.mcp-copy-icon { position: relative; display: inline-block; flex: 0 0 15px; width: 15px; height: 15px; }
.mcp-copy-icon::before, .mcp-copy-icon::after { position: absolute; width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 2px; content: ""; }
.mcp-copy-icon::before { inset: 0 auto auto 0; }
.mcp-copy-icon::after { inset: auto 0 0 auto; background: var(--copy-fill, #fff); }
.mcp-card-content { margin: 0 .6rem .52rem; padding: clamp(.9rem, 2.3vw, 1.25rem); border-radius: 13px; background: #f6f5f9; }
.mcp-instructions-lead, .mcp-instructions-next { color: #626278; font-size: .86rem; }
.mcp-account-help { margin-top: .38rem; }
.mcp-account-help a { color: var(--violet-dark); font-weight: 660; text-decoration: underline; }
.mcp-command {
  margin: .69rem 0 .65rem;
  padding: .1rem 0 .1rem .68rem;
  border-inline-start: 2px solid #d0c4f7;
  font: .87rem/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mcp-address { flex-wrap: wrap; border-top: 1px solid var(--line); font-size: .86rem; }
.mcp-address > span { color: var(--muted); }
.mcp-address > code { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.mcp-address > .status { flex: 0 0 100%; margin: -.25rem 0 0; }
.mcp-copy-link { display: inline-flex; align-items: center; flex: none; gap: .4rem; margin-left: auto; border: 0; padding: .35rem .08rem; color: var(--violet-dark); background: transparent; font-weight: 650; }
.mcp-token { margin-block: .75rem; padding-top: .65rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.mcp-token-actions, .mcp-token-result { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .5rem; }
.mcp-token-result > code { min-width: 0; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow-wrap: anywhere; user-select: all; }
.mcp-token .status, #mcp-copy-status { margin-top: .45rem; }
.mcp-media summary { cursor: pointer; color: var(--ink); }
.mcp-media-upload { display: grid; gap: .38rem; margin-top: .7rem; }
.mcp-media-upload input[type=file] { padding: .5rem .62rem; background: #fff; }
.mcp-media-upload .mcp-token-actions { margin: 0; }
.mcp-media-upload .status { margin: 0; }
.mcp-media-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem; margin-top: .85rem; }
.mcp-media-heading h3 { font-size: .95rem; color: var(--ink); }
.mcp-media .record { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
.mcp-media .record strong { color: var(--ink); }
.mcp-media .record code { display: block; margin-top: .18rem; font-size: .82rem; overflow-wrap: anywhere; user-select: all; }
.mcp-starters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
  width: min(100%, 780px);
  margin: .85rem auto 0;
  padding: 1rem clamp(.8rem, 2.4vw, 1.35rem);
  border: 1px solid #eae7f1;
  border-radius: 15px;
  background: #fff;
}
.mcp-starters > div { flex: 1 1 15rem; }
.mcp-starters h2 { font-size: 1rem; }
.mcp-starters > div p { color: var(--muted); font-size: .83rem; }
.mcp-starters > .status, .mcp-starters > textarea { flex-basis: 100%; }
.case-instruction { width: 100%; margin-top: .35rem; resize: vertical; }

.panel-page { max-width: 1010px; padding: clamp(1.25rem, 4vw, 3.5rem) clamp(1rem, 3.4vw, 2.4rem); margin: auto; }
.page-heading { margin-bottom: 1.35rem; }
.page-heading h1 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.065em; margin-bottom: .32rem; line-height: 1.18; }
.page-heading .text-link { display: inline-block; margin-bottom: .65rem; }
.account-page-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; }
.panel { border: 1px solid var(--line); border-radius: 18px; padding: clamp(.95rem, 2.4vw, 1.48rem); background: var(--surface); margin-bottom: 1rem; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.14rem; margin-bottom: .55rem; }
.record-list { display: grid; min-width: 0; }
.record-list > p { padding: .36rem 0; }
.record { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; align-items: center; border-bottom: 1px solid #eeedf2; padding: .8rem .1rem; }
.record:last-child { border-bottom: 0; }
.record div { min-width: 0; overflow-wrap: anywhere; }
.record small { display: block; color: var(--muted); font-size: .81rem; }
.record time { display: inline-block; white-space: nowrap; }
.task-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.job-video-dialog { width: min(calc(100% - 1.5rem), 38rem); max-height: calc(100dvh - 1.5rem); padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); }
.job-video-dialog::backdrop { background: #201842ae; }
.job-video-heading { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.job-video-dialog .result-player { display: block; width: min(100%, 350px); max-height: min(65vh, 530px); margin: .7rem auto; border-radius: 12px; background: #181624; }
.delta { font-weight: 700; white-space: nowrap; }
.delta.positive { color: #4b681f; }
.balances { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .62rem; margin-bottom: 1rem; }
.balances > div { padding: .95rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.balances > div:first-child { background: #eeebff; border-color: #e4ddfa; }
.balances dt { color: var(--muted); font-size: .84rem; }
.balances dd { margin-top: .22rem; font-weight: 740; font-size: clamp(1.05rem, 3.25vw, 2rem); overflow-wrap: anywhere; }
.recharge-balance {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
  padding: 1.2rem 1.45rem;
  border: 1px solid #ece7fb;
  border-radius: 18px;
  background: radial-gradient(ellipse at 100% 0, #f8dfd1, transparent 88%), #eae3ff;
}
.recharge-balance dt { color: #4f4863; font-size: .88rem; }
.recharge-balance dd { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 750; }
.recharge-balance .recharge-rate { font-size: 1.05rem; }
#redeem-form { margin-top: .85rem; display: grid; gap: .47rem; max-width: 33rem; }
.redeem-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .55rem; }
#redeem-status, #ledger-status { margin-top: .45rem; }
#ledger-more { margin-top: .55rem; }
.pricing-page { max-width: 1120px; }
.pricing-card { padding: 0; overflow: hidden; }
.pricing-card > .status { padding: .95rem 1rem; }
.pricing-scroll { overflow-x: auto; }
.pricing-table { width: 100%; min-width: 690px; border-collapse: collapse; text-align: left; }
.pricing-table :is(th, td) { padding: .78rem 1rem; border-bottom: 1px solid var(--line); }
.pricing-table thead { background: var(--soft); color: var(--muted); font-size: .86rem; }
.pricing-table tbody th { font-weight: 680; }
.pricing-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.pricing-table th:nth-child(5), .pricing-points { text-align: right; }
.pricing-points { color: var(--violet-dark); font-weight: 740; font-variant-numeric: tabular-nums; }
.pricing-available { color: #345820; }

@media (max-width: 800px) {
  .login-content { width: min(100%, 490px); grid-template-columns: 1fr; min-height: 0; padding: 48px 8px 8px; }
  .login-close { inset: 2px 8px auto auto; width: 44px; height: 44px; }
  .login-reel { min-height: 240px; padding: 16px 19px; border-radius: 10px; }
  .login-reel-bottom { padding-top: 49px; }
  .login-reel-copy { min-height: 0; }
  .login-reel-copy h2 { font-size: 26px; }
  .login-reel-control { width: 36px; height: 36px; flex-basis: 36px; }
  .login-clip { min-height: 30px; font-size: 11px; }
  .login-card { width: min(100%, 465px); margin: auto; }
  .login-content > .login-card { width: 100%; padding: 30px clamp(11px, 4vw, 24px) 20px; }
  .login-card-heading { margin-bottom: 17px; }
  .login-wordmark { margin-bottom: 10px; }
  .login-shell { background:
    radial-gradient(ellipse at 46% 0, #24194f 1%, transparent 68%),
    linear-gradient(164deg, #5b449f 23%, #9373c1 54%, #f2cab7 94%); }
}
@media (prefers-reduced-motion: reduce) {
  .login-reel-video { transition: none; }
}
@media (max-width: 680px) {
  .workspace { grid-template-columns: minmax(0, 1fr); gap: .28rem; padding: .4rem; }
  .sidebar { top: .4rem; display: flex; align-items: center; gap: .22rem; height: auto; padding: .25rem .26rem; border-radius: 11px; }
  .brand-link { flex: 0 0 34px; padding: .3rem .15rem; margin: 0; }
  .brand-link span { display: none; }
  .rail-logo { width: 23px; height: 22px; }
  .sidebar nav { flex: 1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .13rem; }
  .sidebar nav a { min-height: 46px; padding: .28rem .04rem; gap: .18rem; font-size: clamp(.59rem, 2.7vw, .72rem); }
  .sidebar nav .ui-icon { width: 16px; height: 16px; }
  .topbar { min-height: 47px; padding-inline: .55rem; font-size: .8rem; }
  .topbar-actions { gap: .23rem; }
  .identity-label { display: none; }
  .logout.button { width: 31px; min-height: 31px; }
  .credit-chip { min-height: 30px; padding-inline: .42rem; }
  .management-link { padding-inline: .4rem; min-height: 30px; }
  .mcp-stage { padding: 1.5rem .54rem 2rem; min-height: calc(100dvh - 150px); }
  .mcp-stage::before, .mcp-stage::after { height: 315px; background-size: 11px 11px; }
  .mcp-clients { border-radius: 15px; margin-bottom: 1.4rem; }
  .mcp-clients button { min-height: 32px; padding: .22rem .5rem; font-size: .79rem; }
  .mcp-clients .mcp-symbol { width: 1em; height: 1em; }
  .mcp-card-top, .mcp-address { padding-inline: .75rem; }
  .mcp-card-top .mcp-copy { padding: .4rem .52rem; min-height: 37px; font-size: .78rem; }
  .mcp-address > code { flex-basis: calc(100% - 5rem); }
  .mcp-starters .button { min-height: 36px; padding: .45rem .59rem; font-size: .83rem; }
}
@media (max-width: 420px) {
  .record:has(.task-row-actions) { grid-template-columns: 1fr; }
  .balances { gap: .32rem; }
  .balances > div { padding-inline: .45rem; }
  .recharge-balance { padding-inline: .83rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; } }
