:root {
  color-scheme: light;
  --bg: #f7f6f0;
  --card: #ffffff;
  --ink: #101410;
  --muted: #6f776f;
  --muted-2: #626a62;
  --line: #e5e9e3;
  --line-strong: #d7ddd4;
  --green: #c18a00;
  --green-dark: #795500;
  --green-soft: #fff5d4;
  --amber: #b87600;
  --amber-soft: #fff6df;
  --red: #c63b32;
  --red-soft: #fff0ee;
  --shadow: 0 18px 50px rgba(31, 42, 32, 0.08);
  --shadow-soft: 0 8px 24px rgba(31, 42, 32, 0.055);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(26, 36, 27, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 36, 27, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(215, 221, 212, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(16, 20, 16, 0.16);
}

.brand-mark svg {
  width: 23px;
  fill: currentColor;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.network-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #464e46;
  font-size: 12px;
  font-weight: 650;
}

.network-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 184, 74, 0.1);
}

.chain-id {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef1ed;
  color: #565e56;
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

main {
  padding: 76px 0 36px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  gap: 76px;
  align-items: center;
  margin-bottom: 70px;
}

.eyebrow,
.section-kicker {
  display: block;
  margin: 0 0 15px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 5.4vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-description {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.watch-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.watch-card-header,
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.watch-card h2,
.panel-header h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.readonly-badge {
  padding: 6px 9px;
  border: 1px solid #cbe8d5;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

form {
  margin-top: 27px;
}

label {
  display: block;
  margin-bottom: 9px;
  color: #4f574f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.address-field {
  height: 58px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #fafbfa;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.address-field:focus-within {
  border-color: #63b77c;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 184, 74, 0.09);
}

.field-icon {
  padding-left: 17px;
  color: var(--green-dark);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.address-field input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 16px 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.address-field input::placeholder {
  color: #aeb4ae;
}

.add-wallet-button {
  height: 36px;
  margin-right: 10px;
  padding: 0 13px;
  flex: 0 0 auto;
  border: 1px solid #cbd2c9;
  border-radius: 9px;
  background: #fff;
  color: #444c44;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  transition:
    border-color 140ms ease,
    color 140ms ease,
    background 140ms ease;
}

.add-wallet-button:hover {
  border-color: #71b785;
  background: var(--green-soft);
  color: var(--green-dark);
}

.wallet-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 1px 8px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
}

.wallet-list-header strong {
  color: var(--green-dark);
}

.wallet-list {
  max-height: 132px;
  min-height: 43px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8faf7;
  scrollbar-color: #cbd2c9 transparent;
  scrollbar-width: thin;
}

.wallet-list-empty {
  height: 31px;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 10px;
}

.wallet-chip {
  min-height: 34px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  padding: 3px 4px 3px 6px;
  border-radius: 8px;
  background: #fff;
  color: #3f473f;
}

.wallet-chip + .wallet-chip {
  margin-top: 4px;
}

.wallet-chip-number {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green-dark);
  font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.wallet-chip-address {
  overflow: hidden;
  text-overflow: ellipsis;
  font: 550 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.wallet-remove {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #929992;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.wallet-remove:hover {
  background: var(--red-soft);
  color: var(--red);
}

.form-error {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--red);
  font-size: 11px;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.primary-button,
.secondary-button {
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease;
}

.primary-button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 20, 16, 0.14);
}

.primary-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.secondary-button {
  width: 84px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #555d55;
}

.primary-button:hover,
.secondary-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 11px;
}

.privacy-note svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.monitor-strip {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 19px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.monitor-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pulse-ring {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #bec4be;
}

.pulse-ring.live {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(0, 184, 74, 0.1);
  animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
  50% {
    box-shadow: 0 0 0 10px rgba(0, 184, 74, 0.025);
  }
}

.meta-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.monitor-identity strong {
  display: block;
  overflow: hidden;
  max-width: min(48vw, 560px);
  text-overflow: ellipsis;
  color: #303730;
  font: 600 13px/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.connection-status {
  display: flex;
  gap: 36px;
}

.connection-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.connection-item span:not(.status-dot) {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 650;
}

.connection-item strong {
  display: block;
  max-width: 190px;
  margin-top: 4px;
  overflow: hidden;
  color: #444c44;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.status-dot.idle {
  background: #c5cac5;
}

.status-dot.connecting {
  background: #e7a21b;
  box-shadow: 0 0 0 4px rgba(231, 162, 27, 0.11);
}

.status-dot.live {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 184, 74, 0.1);
}

.status-dot.error {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(198, 59, 50, 0.09);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}

.usage-note {
  margin: 0 0 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--amber-soft);
  color: #705000;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.metric-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.metric-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.metric-card > strong {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-foot {
  color: var(--muted-2);
  font-size: 10px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
}

.activity-panel,
.pipeline-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.activity-panel {
  min-height: 530px;
  padding: 24px;
}

.pipeline-panel {
  padding: 24px;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.live-label span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c5cac5;
}

.live-label.active {
  border-color: #cbe8d5;
  color: var(--green-dark);
  background: var(--green-soft);
}

.live-label.active span {
  background: var(--green);
}

.activity-list {
  margin-top: 24px;
}

.empty-state {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
}

.empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f8faf7;
  color: #9ba49b;
}

.empty-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.empty-state p {
  max-width: 380px;
  margin: 0;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.65;
}

.activity-row {
  display: grid;
  grid-template-columns: 48px minmax(120px, 1.1fr) minmax(160px, 1.5fr) 112px;
  gap: 16px;
  align-items: center;
  padding: 17px 4px;
  border-bottom: 1px solid #edf0ec;
}

.activity-row:last-child {
  border-bottom: 0;
}

.activity-row > * {
  min-width: 0;
}

.action-badge {
  width: 48px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
}

.token-primary,
.ca-primary {
  display: block;
  overflow: hidden;
  color: #2d342d;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-secondary,
.ca-secondary {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted-2);
  font: 500 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: #606960;
  font: 600 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  flex-wrap: wrap;
}

.capture-time {
  color: var(--green-dark);
}

.event-meta-divider {
  color: #c2c8c2;
}

.source-wallet,
.transaction-hash {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ca-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ca-text {
  flex: 1 1 auto;
  min-width: 0;
}

.copy-button,
.explorer-link {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #7f877f;
  cursor: pointer;
  text-decoration: none;
}

.copy-button:hover,
.explorer-link:hover {
  border-color: #b9c2b9;
  color: var(--ink);
}

.copy-button svg,
.explorer-link svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.event-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
  background: var(--amber-soft);
  color: #805000;
}

.pipeline-list {
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.pipeline-list li {
  position: relative;
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 12px;
  padding-bottom: 24px;
}

.pipeline-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 30px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}

.step-number {
  width: 33px;
  height: 25px;
  display: grid;
  place-items: center;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--green-dark);
  font: 750 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.pipeline-list strong {
  display: block;
  margin: 4px 0 6px;
  font-size: 12px;
}

.pipeline-list p,
.notice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.notice-card p {
  color: var(--muted-2);
}

.notice-card {
  padding: 15px;
  border: 1px solid #e2e7df;
  border-radius: 13px;
  background: #f8faf7;
}

.notice-card > span {
  display: block;
  margin-bottom: 7px;
  color: #596159;
  font-size: 10px;
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 2px 40px;
  color: var(--muted-2);
  font-size: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 20;
  max-width: calc(100% - 32px);
  padding: 11px 15px;
  border: 1px solid #d8ded5;
  border-radius: 10px;
  background: #171b17;
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logout-button {
  height: 35px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #697069;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition:
    border-color 140ms ease,
    color 140ms ease,
    background 140ms ease;
}

.logout-button svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.logout-button:hover {
  border-color: #b8c0b8;
  background: #fff;
  color: var(--ink);
}

.login-page {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
}

.login-ambient {
  position: fixed;
  top: -220px;
  right: -180px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 184, 74, 0.09) 0,
    rgba(0, 184, 74, 0.025) 48%,
    transparent 70%
  );
  pointer-events: none;
}

.login-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.login-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 480px);
  gap: clamp(70px, 9vw, 150px);
  align-items: center;
  padding: 68px 5% 56px;
}

.login-intro {
  max-width: 650px;
}

.login-intro h1 {
  margin: 0;
  font-size: clamp(54px, 6vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.login-intro > p:not(.eyebrow) {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.login-signals {
  display: flex;
  gap: 36px;
  margin-top: 43px;
}

.login-signals > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.signal-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #dbe8dc;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--green-dark);
}

.signal-icon svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.login-signals strong,
.login-signals small {
  display: block;
}

.login-signals strong {
  color: #343b34;
  font-size: 11px;
}

.login-signals small {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 10px;
}

.login-card {
  position: relative;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 28px 70px rgba(26, 38, 27, 0.1),
    0 3px 10px rgba(26, 38, 27, 0.035);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 30px auto;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.55;
}

.login-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-lock {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 9px 22px rgba(16, 20, 16, 0.15);
}

.login-lock svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #cbe8d5;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.secure-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.login-card-copy {
  margin-top: 32px;
}

.login-card-copy h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.045em;
}

.login-card-copy > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.login-form {
  margin-top: 28px;
}

.password-field {
  height: 58px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #fafbfa;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.password-field:focus-within {
  border-color: #63b77c;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 184, 74, 0.09);
}

.password-field.invalid {
  border-color: #db817a;
  box-shadow: 0 0 0 4px rgba(198, 59, 50, 0.075);
}

.password-field > svg {
  width: 18px;
  margin-left: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: #8c948c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.password-field input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.password-field input::placeholder {
  color: #aeb4ae;
}

.password-toggle {
  height: 32px;
  margin-right: 10px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.password-toggle:hover {
  background: #eef1ed;
  color: var(--ink);
}

.login-error {
  min-height: 20px;
  margin-top: 8px;
}

.login-submit {
  width: 100%;
  flex: none;
}

.login-security-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.55;
}

.login-security-note svg {
  width: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.login-footer {
  flex: 0 0 auto;
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-copy {
    max-width: 800px;
  }

  .watch-card {
    max-width: 700px;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pipeline-panel {
    display: none;
  }

  .login-main {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 440px);
    gap: 50px;
    padding-inline: 0;
  }

  .login-intro h1 {
    font-size: clamp(48px, 6.5vw, 68px);
  }

  .login-signals {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 28px, 680px);
  }

  .topbar {
    height: 74px;
  }

  .brand small,
  .network-pill > .network-dot {
    display: none;
  }

  .network-pill {
    padding-left: 9px;
    font-size: 10px;
  }

  .topbar-actions {
    gap: 7px;
  }

  .logout-button {
    width: 35px;
    justify-content: center;
    padding: 0;
  }

  .logout-button span {
    display: none;
  }

  main {
    padding-top: 48px;
  }

  .hero {
    margin-bottom: 45px;
  }

  .hero h1 {
    font-size: clamp(41px, 13vw, 60px);
  }

  .hero-description {
    font-size: 14px;
  }

  .watch-card {
    padding: 21px;
  }

  .monitor-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .connection-status {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .monitor-identity strong {
    max-width: 76vw;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-card {
    min-height: 132px;
    padding: 18px;
  }

  .metric-card > strong {
    font-size: 31px;
  }

  .activity-panel {
    padding: 19px;
  }

  .activity-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .activity-row .ca-wrap {
    grid-column: 2 / 4;
  }

  .activity-row .event-status {
    grid-column: 3;
    grid-row: 1;
  }

  footer {
    gap: 10px;
    flex-direction: column;
  }

  .login-main {
    display: block;
    padding: 52px 0 42px;
  }

  .login-intro {
    max-width: 560px;
    margin-bottom: 38px;
  }

  .login-intro h1 {
    font-size: clamp(44px, 12vw, 64px);
  }

  .login-intro > p:not(.eyebrow) {
    margin-top: 20px;
    font-size: 14px;
  }

  .login-signals {
    display: none;
  }

  .login-card {
    max-width: 520px;
    padding: 25px;
  }
}

@media (max-width: 440px) {
  .brand strong {
    font-size: 13px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .network-pill {
    gap: 6px;
  }

  .topbar-actions .network-pill {
    display: none;
  }

  .hero h1 {
    font-size: 41px;
    letter-spacing: -0.055em;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .secondary-button {
    width: 100%;
  }

  .login-main {
    padding-top: 39px;
  }

  .login-intro {
    margin-bottom: 30px;
  }

  .login-intro h1 {
    font-size: 43px;
  }

  .login-intro > p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.7;
  }

  .login-card {
    padding: 22px 19px;
    border-radius: 20px;
  }

  .login-card-copy {
    margin-top: 26px;
  }

  .login-card-copy h2 {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
