:root {
  --ink: #16201f;
  --ink-soft: #475452;
  --muted: #7b8784;
  --line: #e3e7e3;
  --line-strong: #d5dbd6;
  --paper: #f3f5f1;
  --surface: #ffffff;
  --surface-soft: #f8faf7;
  --sidebar: #14201f;
  --sidebar-soft: #1d2c29;
  --accent: #ffd43b;
  --accent-deep: #e9b900;
  --green: #1fa77a;
  --green-soft: #e7f7f0;
  --orange: #e9832e;
  --orange-soft: #fff0e3;
  --red: #d84f4f;
  --red-soft: #ffebeb;
  --blue: #4d72d8;
  --blue-soft: #edf1ff;
  --shadow-sm: 0 1px 2px rgb(20 32 31 / 5%);
  --shadow-md: 0 16px 45px rgb(20 32 31 / 8%);
  --shadow-lg: 0 30px 80px rgb(20 32 31 / 16%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --sidebar-width: 252px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  color: var(--ink);
  background: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow,
.page-kicker {
  margin: 0;
  color: #77827f;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  vertical-align: middle;
}

.icon svg,
[data-icon] svg {
  display: block;
  width: 100%;
  height: 100%;
}

[data-icon] {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 17px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.button-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 20px rgb(20 32 31 / 14%);
}

.button-primary:hover {
  background: #263633;
}

.button-accent {
  color: var(--ink);
  background: var(--accent);
  box-shadow: 0 10px 30px rgb(255 212 59 / 18%);
}

.button-accent:hover {
  background: #ffdc5f;
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: #b8c2bb;
  background: #fff;
}

.button-ghost {
  color: var(--ink-soft);
  background: transparent;
}

.button-ghost:hover {
  background: var(--surface-soft);
}

.button-danger {
  color: #fff;
  background: var(--red);
}

.button-glass {
  border-color: rgb(255 255 255 / 16%);
  color: #fff;
  background: rgb(255 255 255 / 8%);
  backdrop-filter: blur(8px);
}

.button-glass:hover {
  background: rgb(255 255 255 / 13%);
}

.button-block {
  width: 100%;
}

.button-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentcolor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 650ms linear infinite;
}

.is-loading .button-spinner {
  display: inline-block;
}

.is-loading .button-label {
  opacity: 0.75;
}

.icon-button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background 150ms ease;
}

.icon-button:hover {
  background: var(--surface-soft);
}

.icon-button.bordered {
  border: 1px solid var(--line);
  background: var(--surface);
}

.icon-button.icon-button-dark {
  color: #9caba6;
}

.icon-button.icon-button-dark:hover {
  color: #fff;
  background: rgb(255 255 255 / 8%);
}

.text-button {
  display: inline-flex;
  padding: 3px;
  align-items: center;
  gap: 4px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover {
  color: var(--ink);
}

.text-button [data-icon] {
  width: 15px;
  height: 15px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.field em {
  color: var(--orange);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.field small {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.cookie-textarea,
.search-box input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.field input,
.field select {
  height: 43px;
  padding: 0 13px;
}

.field input:focus,
.field select:focus,
.cookie-textarea:focus,
.search-box:focus-within {
  border-color: #90a49e;
  box-shadow: 0 0 0 3px rgb(31 167 122 / 10%);
}

.field input::placeholder,
.cookie-textarea::placeholder,
.search-box input::placeholder {
  color: #a2aba8;
}

.form-error {
  min-height: 20px;
  margin: 4px 0 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
}

.form-error:empty {
  display: none;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52e0ab;
  box-shadow: 0 0 0 4px rgb(82 224 171 / 12%);
  animation: pulse 2s ease-in-out infinite;
}

/* Authentication */
.auth-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 1.05fr) minmax(400px, 0.95fr);
  background: #f8f9f6;
}

.auth-brand {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 20% 80%, rgb(31 167 122 / 20%), transparent 34%),
    radial-gradient(circle at 92% 10%, rgb(255 212 59 / 12%), transparent 24%),
    var(--sidebar);
}

.auth-brand::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 38px 38px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.auth-brand-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  max-width: 640px;
  padding: 64px clamp(42px, 7vw, 104px);
  flex-direction: column;
  justify-content: center;
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgb(20 32 31 / 8%);
  transform: rotate(-5deg);
}

.brand-mark span:first-child {
  position: absolute;
  top: 13px;
  left: 10px;
  width: 18px;
  height: 11px;
  border: 2px solid var(--ink);
  border-left-width: 3px;
  border-radius: 50% 55% 45% 50%;
  transform: rotate(-8deg);
}

.brand-mark span:first-child::after {
  position: absolute;
  top: 3px;
  right: -6px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  content: "";
  transform: rotate(28deg);
}

.brand-mark span:last-child {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--ink);
}

.brand-mark-large {
  width: 54px;
  height: 54px;
  margin-bottom: 36px;
  border-radius: 16px;
}

.brand-mark-large span:first-child {
  top: 18px;
  left: 13px;
  width: 25px;
  height: 15px;
  border-width: 2.5px;
}

.brand-mark-large span:last-child {
  top: 21px;
  left: 21px;
  width: 3px;
  height: 3px;
}

.auth-brand .eyebrow {
  color: #91a39d;
}

.auth-brand h1 {
  max-width: 570px;
  margin: 18px 0 22px;
  font-size: clamp(38px, 4.5vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.auth-lede {
  max-width: 530px;
  margin: 0;
  color: #aab8b3;
  font-size: 16px;
  line-height: 1.85;
}

.auth-feature-list {
  display: grid;
  margin-top: 42px;
  gap: 14px;
  color: #dce4e1;
  font-size: 13px;
}

.auth-feature-list > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.feature-dot {
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgb(255 212 59 / 10%);
}

.auth-orbit {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 50%;
}

.auth-orbit-one {
  right: -180px;
  bottom: -240px;
  width: 620px;
  height: 620px;
}

.auth-orbit-two {
  right: -60px;
  bottom: -120px;
  width: 380px;
  height: 380px;
}

.auth-panel {
  display: grid;
  min-height: 100vh;
  padding: 50px;
  place-items: center;
}

.auth-card {
  width: min(100%, 410px);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(20 32 31 / 8%);
}

.auth-card-heading {
  margin-bottom: 30px;
}

.auth-card h2 {
  margin: 9px 0 8px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.auth-card-heading > .muted {
  margin: 0;
  font-size: 13px;
}

.auth-card .field {
  margin-bottom: 17px;
}

.auth-card .button {
  margin-top: 12px;
}

.auth-footnote {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.mobile-brand {
  display: none;
}

/* Shell */
.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  width: var(--sidebar-width);
  padding: 24px 18px 20px;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at bottom left, rgb(31 167 122 / 12%), transparent 32%),
    var(--sidebar);
}

.sidebar-brand {
  display: flex;
  padding: 2px 7px 0;
  align-items: center;
  gap: 12px;
}

.sidebar-brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.sidebar-brand small {
  display: block;
  margin-top: 1px;
  color: #879790;
  font-size: 10px;
}

.sidebar-close {
  display: none;
  margin-left: auto;
  color: #9eada8;
}

.sidebar-nav {
  margin-top: 38px;
}

.nav-label {
  margin: 24px 12px 8px;
  color: #687973;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  height: 46px;
  padding: 0 12px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 11px;
  color: #a8b5b1;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgb(255 255 255 / 5%);
}

.nav-item.is-active {
  color: var(--ink);
  background: var(--accent);
}

.nav-icon {
  width: 19px;
  height: 19px;
}

.nav-count {
  min-width: 24px;
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 99px;
  color: #b7c2be;
  background: rgb(255 255 255 / 7%);
  font-size: 10px;
  text-align: center;
}

.nav-item.is-active .nav-count {
  color: var(--ink);
  background: rgb(20 32 31 / 10%);
}

.sidebar-status {
  margin: auto 5px 20px;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 12px;
  background: rgb(255 255 255 / 3%);
}

.service-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c8d1ce;
  font-size: 11px;
  font-weight: 650;
}

.sidebar-status small {
  display: block;
  margin-top: 8px;
  color: #687973;
  font-size: 10px;
}

.sidebar-user {
  display: flex;
  padding: 14px 7px 0;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgb(255 255 255 / 7%);
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  color: var(--ink);
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-light {
  color: #fff;
  background: #38504a;
}

.sidebar-user-copy {
  min-width: 0;
  flex: 1;
}

.sidebar-user-copy strong,
.sidebar-user-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy strong {
  color: #eef2f0;
  font-size: 12px;
}

.sidebar-user-copy small {
  margin-top: 1px;
  color: #71827c;
  font-size: 9px;
}

.sidebar-scrim {
  position: fixed;
  z-index: 35;
  inset: 0;
  border: 0;
  background: rgb(10 18 17 / 55%);
  backdrop-filter: blur(3px);
}

.main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 88px;
  padding: 18px clamp(24px, 4vw, 54px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(214 220 215 / 75%);
  background: rgb(243 245 241 / 88%);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-left {
  gap: 13px;
}

.topbar h1 {
  margin: 3px 0 0;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.topbar-right {
  gap: 12px;
}

.mobile-menu {
  display: none;
}

.date-chip,
.api-status-chip {
  display: inline-flex;
  height: 33px;
  padding: 0 11px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink-soft);
  background: rgb(255 255 255 / 65%);
  font-size: 11px;
  font-weight: 600;
}

.date-chip [data-icon] {
  width: 14px;
  height: 14px;
}

.api-status-chip .pulse-dot {
  width: 6px;
  height: 6px;
}

.view {
  max-width: 1500px;
  margin: 0 auto;
  padding: 32px clamp(24px, 4vw, 54px) 60px;
  animation: view-in 260ms ease both;
}

/* Dashboard */
.hero-card {
  position: relative;
  display: grid;
  min-height: 275px;
  padding: clamp(32px, 4vw, 50px);
  overflow: hidden;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgb(31 167 122 / 20%), transparent 30%),
    linear-gradient(120deg, #182724, #14201f 58%, #1d302b);
  box-shadow: 0 20px 55px rgb(20 32 31 / 13%);
}

.hero-card::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  mask-image: linear-gradient(90deg, transparent 10%, #000);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-card .eyebrow {
  color: #788d86;
}

.hero-card h2 {
  margin: 13px 0 16px;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.hero-card h2 span {
  color: var(--accent);
}

.hero-card p:not(.eyebrow) {
  max-width: 590px;
  margin: 0;
  color: #a7b5b0;
  font-size: 13px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  margin-top: 28px;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  z-index: 2;
  min-height: 200px;
}

.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgb(255 212 59 / 15%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-a {
  width: 250px;
  height: 250px;
}

.ring-b {
  width: 370px;
  height: 370px;
  border-color: rgb(255 255 255 / 5%);
}

.fish-card {
  position: absolute;
  border: 1px solid rgb(255 255 255 / 10%);
  background: rgb(255 255 255 / 8%);
  box-shadow: 0 18px 40px rgb(0 0 0 / 18%);
  backdrop-filter: blur(12px);
}

.fish-card-main {
  top: 50%;
  left: 50%;
  display: flex;
  width: 210px;
  padding: 19px;
  align-items: center;
  gap: 14px;
  border-radius: 18px;
  transform: translate(-50%, -50%) rotate(-3deg);
}

.fish-card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: var(--ink);
  background: var(--accent);
}

.fish-card-icon [data-icon] {
  width: 28px;
  height: 28px;
}

.fish-card-main small,
.fish-card-main strong {
  display: block;
}

.fish-card-main small {
  color: #9eada8;
  font-size: 10px;
}

.fish-card-main strong {
  margin-top: 2px;
  font-size: 25px;
}

.fish-card-mini {
  right: 0;
  bottom: 17px;
  display: flex;
  padding: 10px 13px;
  align-items: center;
  gap: 8px;
  border-radius: 99px;
  color: #d9e2df;
  font-size: 10px;
  font-weight: 650;
}

.fish-card-mini .pulse-dot {
  width: 6px;
  height: 6px;
}

.stats-grid {
  display: grid;
  margin-top: 20px;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  display: flex;
  min-width: 0;
  padding: 21px;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
}

.stat-icon [data-icon] {
  width: 19px;
  height: 19px;
}

.tone-yellow {
  color: #987800;
  background: #fff8d7;
}

.tone-green {
  color: #13815d;
  background: var(--green-soft);
}

.tone-orange {
  color: #bd631b;
  background: var(--orange-soft);
}

.tone-blue {
  color: #3d5db4;
  background: var(--blue-soft);
}

.stat-card p,
.stat-card strong,
.stat-card small {
  display: block;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.stat-card strong {
  margin: 4px 0 0;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.stat-card small {
  margin-top: 7px;
  overflow: hidden;
  color: #929c99;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  margin-top: 20px;
  gap: 20px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  padding: 22px 23px 16px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-header h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.015em;
}

.panel-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.mini-account-list {
  padding: 0 11px 12px;
}

.mini-account {
  display: grid;
  padding: 13px 12px;
  align-items: center;
  gap: 12px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  border-top: 1px solid #edf0ed;
  cursor: pointer;
  transition: background 150ms ease;
}

.mini-account:hover {
  border-radius: 10px;
  background: var(--surface-soft);
}

.mini-account-copy {
  min-width: 0;
}

.mini-account-copy strong,
.mini-account-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-account-copy strong {
  font-size: 12px;
}

.mini-account-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.mini-account-time {
  color: var(--muted);
  font-size: 9px;
}

.activity-list {
  padding: 0 23px 15px;
}

.activity-item {
  position: relative;
  display: grid;
  padding: 12px 0 12px 26px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-top: 1px solid #edf0ed;
}

.activity-item::before {
  position: absolute;
  top: 18px;
  left: 2px;
  width: 7px;
  height: 7px;
  border: 2px solid #a2ada9;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.activity-item.level-warning::before {
  border-color: var(--orange);
}

.activity-copy {
  min-width: 0;
}

.activity-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.activity-item time {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.empty-compact {
  padding: 30px 12px;
  border-top: 1px solid #edf0ed;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Accounts */
.section-heading {
  display: flex;
  margin-bottom: 25px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading h2 {
  margin: 7px 0 7px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.heading-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.account-list-panel {
  overflow: hidden;
}

.account-toolbar {
  display: flex;
  min-height: 72px;
  padding: 14px 18px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.search-box {
  display: flex;
  width: min(300px, 30vw);
  height: 40px;
  padding: 0 11px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
}

.search-box [data-icon] {
  width: 16px;
  height: 16px;
  color: #89948f;
}

.search-box input {
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  box-shadow: none;
  font-size: 12px;
}

.search-box input:focus {
  box-shadow: none;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-chip {
  height: 33px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.filter-chip:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.filter-chip.is-active {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-soft);
}

.account-toolbar > .icon-button {
  margin-left: auto;
}

.table-wrap {
  overflow-x: auto;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.account-table th {
  height: 43px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: #89928f;
  background: #fbfcfa;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.account-table th:nth-child(1) {
  width: 21%;
}

.account-table th:nth-child(2) {
  width: 27%;
}

.account-table th:nth-child(3) {
  width: 20%;
}

.account-table th:nth-child(4) {
  width: 16%;
}

.account-table th:nth-child(5) {
  width: 13%;
}

.account-table th:last-child {
  width: 68px;
}

.account-table td {
  height: 76px;
  padding: 12px 18px;
  border-bottom: 1px solid #edf0ed;
  vertical-align: middle;
}

.account-table tbody tr {
  transition: background 140ms ease;
}

.account-table tbody tr:hover {
  background: #fbfcfa;
}

.account-table tbody tr:last-child td {
  border-bottom: 0;
}

.account-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.account-cell-copy {
  min-width: 0;
}

.account-cell-copy strong,
.account-cell-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-cell-copy strong {
  font-size: 12px;
}

.account-cell-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.status-badge {
  display: inline-flex;
  height: 25px;
  padding: 0 9px;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentcolor;
}

.status-active {
  color: #137f5d;
  background: var(--green-soft);
}

.status-unverified {
  color: #856a09;
  background: #fff6cf;
}

.status-unconfigured {
  color: #596a66;
  background: #eef2ef;
}

.status-expired {
  color: #bc4c3f;
  background: var(--red-soft);
}

.status-disabled {
  color: #66726e;
  background: #eef1ef;
}

.status-proxy {
  color: #315d9c;
  background: #eaf1fd;
}

.status-crawler {
  color: #3d55a8;
  background: #eef0ff;
}

.status-stack {
  display: flex;
  max-width: 260px;
  flex-wrap: wrap;
  gap: 4px;
}

.status-stack .status-badge {
  height: 21px;
  padding: 0 7px;
  font-size: 8px;
}

.cookie-label {
  display: inline-block;
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  border: 1px solid #e8ebe8;
  border-radius: 7px;
  color: #55625e;
  background: #f8faf8;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proxy-label {
  display: inline-flex;
  margin-top: 4px;
  align-items: center;
  gap: 4px;
  color: #2f6960;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  white-space: nowrap;
}

.proxy-label [data-icon] {
  width: 11px;
  height: 11px;
}

.proxy-label.is-missing {
  color: var(--red);
  font-family: inherit;
  font-weight: 650;
}

.proxy-required-badge {
  padding: 3px 8px;
  border-radius: 99px;
  color: #176e58;
  background: var(--green-soft);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.proxy-form-grid {
  grid-template-columns: 1fr 1fr;
}

.proxy-password-field {
  grid-column: 1 / -1;
}

.table-date {
  color: var(--ink-soft);
  font-size: 10px;
}

.table-date small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.lease-label {
  display: inline-flex;
  margin-top: 4px;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 650;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
}

.row-actions .icon-button {
  width: 32px;
  height: 32px;
}

.row-actions [data-icon] {
  width: 17px;
  height: 17px;
}

.table-loading {
  padding: 44px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.account-mobile-list {
  display: none;
}

.pagination {
  display: flex;
  min-height: 58px;
  padding: 10px 18px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.pagination-buttons {
  display: flex;
  gap: 6px;
}

.pagination-buttons button {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 10px;
  cursor: pointer;
}

.pagination-buttons button:disabled {
  cursor: default;
  opacity: 0.4;
}

.empty-state {
  display: grid;
  min-height: 250px;
  padding: 30px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-state [data-icon] {
  width: 35px;
  height: 35px;
  color: #a0aaa6;
}

.empty-state h3 {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.empty-state p {
  max-width: 360px;
  margin: 0;
  font-size: 11px;
}

/* API */
.api-overview {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.api-endpoint-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.endpoint-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.endpoint-top code {
  overflow: hidden;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method {
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.method-post {
  color: #166c53;
  background: var(--green-soft);
}

.method-get {
  color: #3b5cb7;
  background: var(--blue-soft);
}

.api-endpoint-card h3 {
  margin: 18px 0 7px;
  font-size: 15px;
}

.api-endpoint-card p {
  min-height: 50px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.api-auth-tag {
  display: inline-block;
  color: #7b8783;
  font-size: 9px;
  font-weight: 650;
}

.api-detail-grid {
  display: grid;
  margin-top: 20px;
  gap: 20px;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
}

.code-panel {
  overflow: hidden;
}

.copy-button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.copy-button [data-icon] {
  width: 15px;
  height: 15px;
}

.code-block {
  margin: 0;
  padding: 22px 24px;
  overflow: auto;
  color: #d9e5e0;
  background: #172320;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.75;
}

.settings-list {
  padding: 0 23px;
}

.settings-list > div {
  display: grid;
  min-height: 52px;
  padding: 11px 0;
  align-items: center;
  gap: 16px;
  grid-template-columns: 105px minmax(0, 1fr);
  border-top: 1px solid #edf0ed;
}

.settings-list span {
  color: var(--muted);
  font-size: 10px;
}

.settings-list code {
  overflow: hidden;
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-box {
  display: flex;
  margin: 15px 23px 23px;
  padding: 13px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #f0e2b7;
  border-radius: 10px;
  background: #fffae9;
}

.notice-box [data-icon] {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #a17c13;
}

.notice-box p {
  margin: 0;
  color: #806821;
  font-size: 10px;
  line-height: 1.65;
}

/* Events */
.event-log-panel {
  padding: 4px 24px;
}

.event-log-item {
  display: grid;
  min-height: 76px;
  padding: 17px 0;
  align-items: center;
  gap: 15px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  border-bottom: 1px solid #edf0ed;
}

.event-log-item:last-child {
  border-bottom: 0;
}

.event-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: var(--ink-soft);
  background: var(--surface-soft);
}

.event-icon [data-icon] {
  width: 16px;
  height: 16px;
}

.event-log-item.level-warning .event-icon {
  color: #b96e26;
  background: var(--orange-soft);
}

.event-copy strong {
  display: block;
  font-size: 12px;
}

.event-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.event-copy small {
  display: block;
  margin-top: 5px;
  color: #9ba4a1;
  font-size: 9px;
}

.event-log-item time {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
  white-space: nowrap;
}

/* Dialogs */
.modal {
  width: min(92vw, 570px);
  max-height: min(90vh, 900px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: transparent;
  box-shadow: var(--shadow-lg);
}

.modal-wide {
  width: min(92vw, 720px);
}

.modal-small {
  width: min(92vw, 420px);
}

.modal::backdrop {
  background: rgb(12 20 18 / 55%);
  backdrop-filter: blur(5px);
}

.modal[open] {
  animation: modal-in 180ms ease-out both;
}

.modal-card {
  max-height: min(90vh, 900px);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 20px;
  background: #fff;
}

.modal-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  padding: 24px 26px 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid transparent;
  background: rgb(255 255 255 / 95%);
  backdrop-filter: blur(12px);
}

.modal-header h2 {
  margin: 6px 0 0;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.modal-close [data-icon] {
  width: 18px;
  height: 18px;
}

.modal-body {
  display: grid;
  padding: 7px 26px 24px;
  gap: 17px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.cookie-input-section {
  display: grid;
  padding: 18px;
  gap: 10px;
  border: 1px solid #e8ebe7;
  border-radius: 13px;
  background: var(--surface-soft);
}

.terminal-summary-card {
  display: flex;
  padding: 15px;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.terminal-summary-code {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: var(--ink);
  background: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.terminal-summary-card strong {
  display: block;
  font-size: 13px;
}

.terminal-summary-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.field-label em {
  color: var(--orange);
  font-size: 11px;
  font-style: normal;
}

.cookie-textarea {
  min-height: 130px;
  padding: 13px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.65;
}

.modal-footer {
  display: flex;
  padding: 17px 26px 24px;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.modal-footer-centered {
  justify-content: center;
}

/* QR */
.qr-progress {
  display: grid;
  padding: 14px 26px 30px;
  place-items: center;
  gap: 15px;
}

.qr-frame {
  position: relative;
  display: grid;
  width: 240px;
  height: 240px;
  padding: 15px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 16px 40px rgb(20 32 31 / 9%);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-success-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 17px;
  color: var(--green);
  background: rgb(255 255 255 / 96%);
}

.qr-success-overlay [data-icon] {
  width: 45px;
  height: 45px;
}

.qr-success-overlay strong {
  font-size: 16px;
}

.qr-status-pill {
  display: inline-flex;
  padding: 7px 12px;
  align-items: center;
  gap: 7px;
  border-radius: 99px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 11px;
  font-weight: 650;
}

.qr-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.4s infinite;
}

.qr-status-pill.is-success .qr-status-dot {
  background: var(--green);
}

.qr-status-pill.is-error .qr-status-dot {
  background: var(--red);
}

.qr-help,
.qr-expiry {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.qr-expiry {
  color: #99a29f;
  font-size: 9px;
}

/* Detail */
.detail-hero {
  display: flex;
  padding: 21px;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.detail-hero .avatar {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  font-size: 18px;
}

.detail-hero-copy {
  min-width: 0;
  flex: 1;
}

.detail-hero h3 {
  margin: 0;
  font-size: 17px;
}

.detail-hero p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.detail-meta-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-meta {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.detail-meta span,
.detail-meta strong {
  display: block;
}

.detail-meta span {
  color: var(--muted);
  font-size: 9px;
}

.detail-meta strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-section-title {
  display: flex;
  margin: 8px 0 0;
  align-items: center;
  justify-content: space-between;
}

.detail-section-title h4 {
  margin: 0;
  font-size: 13px;
}

.detail-events {
  display: grid;
  border-top: 1px solid var(--line);
}

.detail-event {
  display: grid;
  padding: 11px 0;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--line);
}

.detail-event span {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
}

.detail-event small {
  color: var(--muted);
  font-size: 9px;
}

.warning-banner {
  display: flex;
  padding: 13px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #f1dfaa;
  border-radius: 11px;
  background: #fffae8;
}

.warning-banner [data-icon] {
  width: 17px;
  height: 17px;
  color: #a57a0c;
}

.warning-banner p {
  margin: 0;
  color: #806a26;
  font-size: 10px;
  line-height: 1.7;
}

.cookie-display {
  min-height: 180px;
  white-space: pre-wrap;
  word-break: break-all;
}

.confirm-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin: 28px auto 15px;
  place-items: center;
  border-radius: 15px;
  color: var(--red);
  background: var(--red-soft);
}

#confirm-dialog h2,
#confirm-dialog > .modal-card > p {
  padding: 0 26px;
  text-align: center;
}

#confirm-dialog h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

#confirm-dialog > .modal-card > .muted {
  margin: 0 0 18px;
  font-size: 11px;
  line-height: 1.7;
}

/* Toasts */
.toast-region {
  position: fixed;
  z-index: 100;
  top: 20px;
  right: 22px;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: grid;
  padding: 13px 14px;
  align-items: center;
  gap: 10px;
  grid-template-columns: 30px minmax(0, 1fr);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 12px;
  color: #e8efec;
  background: #192522;
  box-shadow: 0 12px 35px rgb(20 32 31 / 22%);
  pointer-events: auto;
  animation: toast-in 240ms ease-out both;
}

.toast-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: #b4f2d9;
  background: rgb(31 167 122 / 18%);
}

.toast-icon [data-icon] {
  width: 15px;
  height: 15px;
}

.toast.is-error .toast-icon {
  color: #ffb2b2;
  background: rgb(216 79 79 / 18%);
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  font-size: 11px;
}

.toast span {
  margin-top: 2px;
  color: #a7b5b0;
  font-size: 9px;
}

/* Responsive */
@media (max-width: 1180px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-overview {
    grid-template-columns: 1fr;
  }

  .api-endpoint-card p {
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .auth-view {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    display: none;
  }

  .mobile-brand {
    display: flex;
    margin-bottom: 28px;
    align-items: center;
    gap: 10px;
  }

  .mobile-brand .brand-mark {
    width: 32px;
    height: 32px;
  }

  .mobile-brand strong {
    font-size: 15px;
  }

  .auth-panel {
    padding: 28px;
  }

  .sidebar {
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close,
  .mobile-menu {
    display: inline-flex;
  }

  .main {
    margin-left: 0;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .dashboard-grid,
  .api-detail-grid {
    grid-template-columns: 1fr;
  }

  .account-toolbar {
    flex-wrap: wrap;
  }

  .search-box {
    width: min(100%, 340px);
  }

  .filter-group {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 74px;
    padding: 14px 18px;
  }

  .topbar h1 {
    font-size: 18px;
  }

  .date-chip {
    display: none;
  }

  .api-status-chip {
    height: 29px;
    padding: 0 9px;
  }

  .view {
    padding: 22px 16px 45px;
  }

  .hero-card {
    min-height: auto;
    padding: 28px 23px;
    border-radius: 19px;
  }

  .hero-card h2 {
    font-size: 31px;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    min-height: 128px;
    padding: 16px;
    flex-direction: column;
    gap: 11px;
  }

  .stat-card strong {
    font-size: 24px;
  }

  .panel-header {
    padding: 18px 17px 14px;
  }

  .mini-account-list {
    padding: 0 7px 10px;
  }

  .activity-list {
    padding: 0 17px 10px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }

  .section-heading .heading-actions,
  .section-heading > .button {
    width: 100%;
  }

  .heading-actions .button {
    flex: 1;
  }

  .account-toolbar {
    padding: 12px;
  }

  .search-box {
    width: calc(100% - 50px);
  }

  .table-wrap {
    display: none;
  }

  .account-mobile-list {
    display: grid;
  }

  .account-card {
    display: grid;
    padding: 16px;
    gap: 13px;
    grid-template-columns: minmax(0, 1fr) auto;
    border-bottom: 1px solid var(--line);
  }

  .account-card-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
  }

  .account-card-meta {
    display: flex;
    padding-top: 10px;
    justify-content: space-between;
    gap: 10px;
    grid-column: 1 / -1;
    border-top: 1px solid #edf0ed;
    color: var(--muted);
    font-size: 9px;
  }

  .account-card .cookie-label {
    max-width: 180px;
  }

  .account-card .proxy-label {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .settings-list > div {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .event-log-panel {
    padding: 2px 16px;
  }

  .event-log-item {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .event-log-item time {
    padding-left: 51px;
    grid-column: 1 / -1;
    text-align: left;
  }

  .form-grid,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-right: 19px;
    padding-left: 19px;
  }

  .qr-progress {
    padding-right: 19px;
    padding-left: 19px;
  }

  .qr-frame {
    width: 220px;
    height: 220px;
  }

  .detail-actions .button {
    flex: 1;
  }

  .auth-panel {
    padding: 18px;
  }

  .auth-card {
    padding: 27px 22px;
  }
}

.account-card-statuses {
  grid-column: 1 / -1;
}

.account-card-statuses .status-stack {
  max-width: none;
}

@media (max-width: 420px) {
  .hero-actions .button {
    width: 100%;
  }

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

  .stat-card {
    min-height: auto;
    flex-direction: row;
  }

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

  .heading-actions .button {
    width: 100%;
  }

  .toast-region {
    top: 12px;
    right: 12px;
    width: calc(100vw - 24px);
  }
}

@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;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(8px);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}
