:root {
  color-scheme: dark;
  --agent-bg: #050607;
  --agent-panel: rgba(18, 22, 25, 0.92);
  --agent-border: rgba(242, 245, 247, 0.14);
  --agent-text: #f3f6f8;
  --agent-muted: rgba(211, 219, 223, 0.76);
  --agent-accent: #f3f6f8;
  --agent-accent-soft: rgba(255, 255, 255, 0.14);
  --agent-danger: #ff8d97;
  --agent-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--agent-bg);
  color: var(--agent-text);
  font-family: "Avenir Next", "Avenir", "Trebuchet MS", sans-serif;
}

body.agent-coming-soon {
  background: radial-gradient(circle at 15% 15%, rgba(89, 166, 255, 0.24), transparent 32%), radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.08), transparent 26%), linear-gradient(180deg, #090d16 0%, #101827 52%, #0b1018 100%);
  color: #f3f7ff;
}

body.agent-coming-soon .agent-shell {
  padding-top: 0;
}

body.agent-coming-soon .agent-header,
body.agent-coming-soon .agent-main {
  max-width: 1120px;
}

body.agent-coming-soon .agent-header {
  margin-bottom: 1.4rem;
}

body.agent-coming-soon .brand-wrap {
  display: flex;
  align-items: center;
}

body.agent-coming-soon .brand-link {
  gap: 0.8rem;
  font-size: 0.98rem;
}

body.agent-coming-soon .brand-copy {
  display: grid;
  line-height: 1.05;
}

body.agent-coming-soon .brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

body.agent-coming-soon .brand-copy span {
  color: rgba(233, 240, 252, 0.72);
  font-size: 0.88rem;
  font-weight: 500;
}

body.agent-coming-soon .status-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.agent-coming-soon .panel {
  background: rgba(14, 18, 29, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

body.agent-coming-soon .hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

body.agent-coming-soon .hero-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 124, 255, 0.34) 0%, rgba(10, 124, 255, 0) 70%);
  pointer-events: none;
}

body.agent-coming-soon .eyebrow {
  margin: 0 0 0.75rem;
  color: rgba(168, 192, 228, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

body.agent-coming-soon .hero-card h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

body.agent-coming-soon .hero-copy {
  max-width: 44rem;
  margin: 1.1rem 0 0;
  color: rgba(228, 236, 248, 0.76);
  font-size: 1.03rem;
  line-height: 1.7;
}

body.agent-coming-soon .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

body.agent-coming-soon .btn.primary {
  background: #ffffff;
  color: #090c10;
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.18);
}

body.agent-coming-soon .btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fbff;
}

body.agent-coming-soon .info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

body.agent-coming-soon .info-card {
  min-height: 100%;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

body.agent-coming-soon .info-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

body.agent-coming-soon .info-card p {
  margin: 0;
  color: rgba(228, 236, 248, 0.72);
  line-height: 1.55;
}

body.agent-auth {
  min-height: 100vh;
  margin: 0;
  background: #000000;
  color: #f5f5f5;
  position: relative;
  overflow-x: hidden;
}

body.agent-auth::before,
body.agent-auth::after {
  display: none;
}

body.agent-auth::after {
  display: none;
}

.agent-auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.agent-auth-card {
  width: min(520px, 100%);
  border-radius: 20px;
  padding: clamp(1.3rem, 4vw, 2rem);
  background: rgba(14, 14, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 65px rgba(2, 8, 18, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.agent-auth-card h1 {
  margin: 0.8rem 0 0;
  font-size: clamp(1.65rem, 3.6vw, 2.2rem);
  letter-spacing: -0.03em;
  font-family: "Futura", "Avenir Next", "Trebuchet MS", sans-serif;
}

.agent-auth-card .panel-subtitle {
  margin: 0.75rem 0 1.1rem;
  color: rgba(235, 235, 235, 0.82);
}

.agent-auth-card .auth-form label {
  color: rgba(235, 235, 235, 0.84);
}

.agent-auth-card input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.28);
  color: #f6f9ff;
}

.agent-auth-card input:focus {
  outline-color: rgba(255, 255, 255, 0.5);
  border-color: #ffffff;
}

.agent-auth-card .btn.primary {
  width: 100%;
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #0b0b0b;
}

.agent-auth-card .btn.primary:hover {
  background: #d9d9d9;
  border-color: #d9d9d9;
}

.agent-auth-card .inline-message {
  margin-top: 0.95rem;
  color: rgba(235, 235, 235, 0.82);
}

.agent-auth-card .inline-message.error {
  color: #ff9ba4;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.auth-switch-copy {
  margin: 1rem 0 0;
  color: rgba(235, 235, 235, 0.78);
  font-size: 0.94rem;
}

.auth-switch-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.auth-switch-link:hover {
  color: #e2e2e2;
  text-decoration: underline;
}

@keyframes agentAuthWaveB {
  0% {
    transform: perspective(1500px) rotateX(58deg) rotateZ(7deg) translate3d(3.2%, -2.6%, 0) scale(1.16);
    background-position: 0 0, 0 0;
  }
  18% {
    transform: perspective(1500px) rotateX(64deg) rotateZ(-3deg) translate3d(-1.4%, -0.8%, 0) scale(1.24);
    background-position: 110px -84px, -98px 80px;
  }
  42% {
    transform: perspective(1500px) rotateX(55deg) rotateZ(10deg) translate3d(2.3%, 2.4%, 0) scale(1.08);
    background-position: 290px -220px, -256px 214px;
  }
  69% {
    transform: perspective(1500px) rotateX(67deg) rotateZ(-8deg) translate3d(-3.1%, 0.6%, 0) scale(1.27);
    background-position: 470px -356px, -416px 350px;
  }
  100% {
    transform: perspective(1500px) rotateX(60deg) rotateZ(5deg) translate3d(2.8%, 2.1%, 0) scale(1.18);
    background-position: 620px -470px, -548px 462px;
  }
}
.hidden {
  display: none !important;
}

.site-header {
  height: 66px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  background-color: rgba(8, 11, 13, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}

.site-header .header-container {
  max-width: 1120px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.site-header .logo-mark {
  display: block;
  width: auto;
  height: 40px;
}

.site-header .logo-name {
  font-size: 22px;
  letter-spacing: -0.04em;
  font-family: "Futura", "Avenir Next", "Trebuchet MS", sans-serif;
}

.site-header .nav-links {
  display: flex;
  gap: 22px;
}

.site-header .nav-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 14px;
}

.site-header .nav-links a:hover {
  color: #ffffff;
}

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

.site-header .btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  padding: 6px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  background: transparent;
}

.site-header .btn:hover {
  border-color: #ffffff;
}

.agent-shell {
  min-height: 100vh;
  padding: 1.25rem;
}

.agent-header {
  max-width: 1200px;
  margin: 0 auto 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.brand-logo {
  width: 28px;
  height: 28px;
}

.header-actions {
  display: flex;
  gap: 0.42rem;
}

.agent-header .btn {
  padding: 0.42rem 0.68rem;
  font-size: 0.81rem;
  font-weight: 500;
  border-radius: 6px;
}

.credits-pill {
  margin: 0;
  align-self: center;
  border: 1px solid var(--agent-border);
  border-radius: 8px;
  padding: 0.38rem 0.68rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f3f7fb;
  background: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.agent-main {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--agent-panel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  box-shadow: var(--agent-shadow);
  padding: 1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.auth-panel {
  max-width: 500px;
}

.auth-panel h1 {
  margin: 0;
  font-size: 1.6rem;
}

.panel-subtitle {
  margin: 0.5rem 0 1rem;
  color: var(--agent-muted);
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--agent-muted);
}

input {
  border: 1px solid var(--agent-border);
  border-radius: 7px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--agent-text);
  background: rgba(255, 255, 255, 0.04);
}

input:focus {
  outline: 2px solid var(--agent-accent-soft);
  border-color: var(--agent-accent);
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.56rem 0.85rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary {
  background: var(--agent-accent);
  border-color: rgba(255, 255, 255, 0.18);
  color: #07111f;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--agent-border);
  color: var(--agent-text);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.inline-message {
  margin: 0.65rem 0 0;
  min-height: 1.15rem;
  color: var(--agent-muted);
  font-size: 0.93rem;
}

.inline-message.error {
  color: var(--agent-danger);
}

.inline-message.success {
  color: #f3f6f8;
}

.upload-panel {
  max-width: 960px;
}

body.agent-upload-page {
  background: radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.09), transparent 36%), radial-gradient(circle at 92% 8%, rgba(89, 166, 255, 0.2), transparent 40%), #040608;
}

body.agent-upload-page .agent-main {
  max-width: none;
  width: min(1680px, 96vw);
  min-height: calc(100vh - 3rem);
  place-items: center;
}

body.agent-upload-page .upload-panel {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 4.5rem);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: clamp(1.25rem, 2.6vw, 2.1rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 20, 24, 0.9), rgba(10, 12, 15, 0.92));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

body.agent-upload-page .upload-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.03em;
  font-family: "Futura", "Avenir Next", "Trebuchet MS", sans-serif;
}

body.agent-upload-page .upload-panel .panel-subtitle {
  max-width: 62ch;
  margin: 0.6rem 0 1.25rem;
  font-size: 1.03rem;
  color: rgba(231, 238, 242, 0.8);
}

.upload-context {
  margin: 0.8rem 0 0;
  color: var(--agent-muted);
  font-size: 0.93rem;
}

.upload-workspace {
  margin-top: 0.85rem;
  width: min(1500px, 94vw);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 0.85rem;
  align-items: stretch;
}

.upload-dashboard-shell {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(89, 166, 255, 0.12), transparent 34%), rgba(255, 255, 255, 0.015);
}

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

.upload-details-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  text-align: left;
  height: 100%;
}

.upload-details-panel h2 {
  margin: 0;
  font-size: 1.15rem;
}

.upload-details-subtitle {
  margin: 0;
  color: var(--agent-muted);
  font-size: 0.9rem;
}

.listing-details-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.listing-details-form label {
  display: grid;
  gap: 0.32rem;
  color: rgba(232, 238, 241, 0.92);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.listing-details-form input,
.listing-details-form select,
.listing-details-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 8, 10, 0.85);
  color: var(--agent-text);
  padding: 0.58rem 0.65rem;
  font: inherit;
}

.listing-details-form input:focus,
.listing-details-form select:focus,
.listing-details-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.listing-details-form textarea {
  resize: vertical;
  min-height: 92px;
}

.listing-description-field {
  grid-column: 1/-1;
}

.custom-upload-ui {
  min-height: clamp(460px, 68vh, 720px);
  padding: clamp(1.2rem, 2vw, 1.8rem);
  display: grid;
  align-content: center;
  gap: 0.95rem;
  background: rgba(5, 9, 12, 0.55);
}

.upload-dropzone {
  width: 100%;
  min-height: clamp(260px, 46vh, 360px);
  border-radius: 8px;
  border: 1px dashed rgba(132, 172, 204, 0.52);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), rgba(6, 10, 14, 0.75);
  color: var(--agent-text);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1.2rem;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.dropzone-idle-state,
.dropzone-preview-state {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
}

.upload-preview-state {
  align-content: center;
}

.upload-preview-thumb {
  width: min(100%, 420px);
  max-height: clamp(160px, 26vh, 260px);
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.upload-preview-name {
  font-size: 0.86rem;
  color: rgba(226, 236, 242, 0.86);
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  border-color: rgba(255, 255, 255, 0.86);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)), rgba(6, 10, 14, 0.8);
  transform: translateY(-1px);
}

.upload-dropzone:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.dropzone-title {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dropzone-subtitle {
  font-size: 0.9rem;
  color: rgba(226, 236, 242, 0.74);
}

.upload-control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
  justify-content: center;
}

.form-gate-notice {
  margin: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.04);
}

.form-gate-notice.is-required {
  border-color: rgba(255, 194, 120, 0.52);
  background: rgba(255, 194, 120, 0.1);
  color: #ffdba6;
}

.form-gate-notice.is-ready {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.11);
  color: #f4f7fa;
}

.upload-ui-btn {
  border-radius: 6px;
  border: 1px solid transparent;
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.upload-ui-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.upload-ui-btn-primary {
  color: #090c10;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.upload-ui-btn-secondary,
.upload-ui-btn-tertiary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--agent-text);
}

.upload-progress {
  display: grid;
  gap: 0.4rem;
}

.upload-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.upload-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.98));
  transition: width 220ms ease;
}

.upload-progress-label {
  margin: 0;
  text-align: center;
  font-size: 0.86rem;
  color: rgba(226, 236, 242, 0.76);
}

.upload-meta {
  width: min(1500px, 94vw);
  margin-top: 0.75rem;
  text-align: center;
  display: grid;
  gap: 0.24rem;
}

.upload-dashboard-shell .uppy-Dashboard-browse {
  display: inline-flex;
  justify-content: center;
}

.upload-dashboard-shell .uppy-Dashboard-input {
  z-index: 1;
}

.dashboard {
  display: grid;
  gap: 1rem;
}

.session-email {
  margin: 0.4rem 0 0;
  color: var(--agent-muted);
}

.welcome-message {
  margin: 0;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 650;
}

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

.metric-card h3 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--agent-muted);
}

.metric-value {
  margin: 0.65rem 0 0;
  font-size: 1.65rem;
  font-weight: 700;
}

.metric-value-small {
  font-size: 1.05rem;
  line-height: 1.35;
}

.metric-subvalue {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: var(--agent-muted);
}

.activity-chart {
  display: grid;
  gap: 0.4rem;
}

.activity-empty {
  margin: 0;
  padding: 0.4rem 0;
  color: var(--agent-muted);
  font-size: 0.9rem;
}

.activity-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
}

.activity-bar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  height: 10px;
}

.activity-bar {
  height: 100%;
  background: linear-gradient(90deg, #59a6ff, #0a7cff);
  transition: width 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scans-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.scans-header h2,
.analytics-panel h2,
.session-panel h2 {
  margin: 0;
  font-size: 1.05rem;
}

.scans-header input {
  width: min(360px, 100%);
}

.scans-header select {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--agent-text);
  padding: 0.5rem 0.6rem;
  font: inherit;
}

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

.scans-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.scans-table th,
.scans-table td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.scans-table tr.is-highlighted {
  background: rgba(255, 255, 255, 0.08);
}

.scans-table td:nth-child(2),
.scans-table th:nth-child(2) {
  min-width: 220px;
  white-space: normal;
}

.scans-table .empty-cell {
  padding: 1rem 0.4rem;
  color: var(--agent-muted);
  text-align: left;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--agent-accent-soft);
  color: #d8eaff;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
}

.action-links {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.action-links button,
.action-links a {
  border: 0;
  background: transparent;
  color: var(--agent-accent);
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.action-links .process-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0.24rem 0.6rem;
  background: #ffffff;
  color: #0a1011;
  font-size: 0.81rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: none;
}

.action-links .process-btn:hover {
  transform: none;
  filter: brightness(0.98);
}

.upload-action .process-link {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  background: #ffffff;
  color: #081011;
  text-decoration: none;
  font-weight: 700;
}

.upload-action .process-link:hover {
  filter: brightness(1.04);
}

@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .upload-workspace {
    grid-template-columns: 1fr;
  }
  .listing-details-form {
    grid-template-columns: 1fr;
  }
  body.agent-coming-soon .info-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .upload-dashboard-shell .uppy-Dashboard-inner {
    min-height: 360px;
  }
}
@media (max-width: 640px) {
  .site-header {
    height: auto;
  }
  .site-header .header-container {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 14px;
  }
  .site-header .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .site-header .header-actions {
    width: 100%;
    justify-content: center;
  }
  .agent-auth-shell {
    min-height: calc(100vh - 132px);
  }
  .agent-shell {
    padding: 0.8rem;
  }
  .agent-header {
    flex-direction: column;
    align-items: flex-start;
  }
  /* ============================================================
     Share Upload Link Page
     ============================================================ */
  body.agent-share-upload-page .agent-shell {
    padding-top: 0;
  }
  body.agent-share-upload-page .agent-header,
  body.agent-share-upload-page .agent-main {
    max-width: 1120px;
  }
  .share-link-panel,
  .existing-links-panel {
    margin-bottom: 1.5rem;
  }
  .share-link-creator {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--agent-border);
    border-radius: 12px;
  }
  .share-link-creator h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--agent-text);
  }
  .creator-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: end;
  }
  .creator-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--agent-muted);
  }
  .creator-form input,
  .creator-form select {
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--agent-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--agent-text);
    font-size: 0.9rem;
    font-family: inherit;
  }
  .creator-form .btn {
    padding: 0.55rem 1.25rem;
    white-space: nowrap;
  }
  .share-link-result {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: rgba(0, 200, 100, 0.06);
    border: 1px solid rgba(0, 200, 100, 0.2);
    border-radius: 12px;
  }
  .share-link-result h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #6fcf97;
  }
  .link-copy-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .link-url-field {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--agent-border);
    background: rgba(0, 0, 0, 0.4);
    color: var(--agent-accent);
    font-size: 0.85rem;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    word-break: break-all;
  }
  .link-url-field-sm {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--agent-border);
    background: rgba(0, 0, 0, 0.4);
    color: var(--agent-accent);
    font-size: 0.78rem;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    word-break: break-all;
  }
  /* Links list */
  .links-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
  }
  .link-card {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--agent-border);
    border-radius: 12px;
    display: grid;
    gap: 0.75rem;
  }
  .link-card-inactive {
    opacity: 0.5;
  }
  .link-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .link-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--agent-text);
  }
  .link-status {
    font-size: 0.78rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
  }
  .link-status--active {
    background: rgba(0, 200, 100, 0.12);
    color: #6fcf97;
  }
  .link-status--deactivated {
    background: rgba(255, 100, 100, 0.12);
    color: #ff8d97;
  }
  .link-status--expired {
    background: rgba(255, 180, 50, 0.12);
    color: #f2c94c;
  }
  .link-card-url {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .link-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.8rem;
    color: var(--agent-muted);
  }
  .link-card-actions {
    display: flex;
    gap: 0.5rem;
  }
  /* ============================================================
     Shared Upload Page (no-auth)
     ============================================================ */
  body.agent-upload-shared-page .agent-shell {
    padding-top: 0;
  }
  body.agent-upload-shared-page .agent-header,
  body.agent-upload-shared-page .agent-main {
    max-width: 1120px;
  }
  body.agent-upload-shared-page .upload-panel h1 {
    font-size: 1.5rem;
  }
  #linkValidationArea {
    margin: 1rem 0;
  }
}
@media (max-width: 640px) and (max-width: 800px) {
  .creator-form {
    grid-template-columns: 1fr;
  }
  .link-copy-row {
    flex-direction: column;
  }
  .link-url-field {
    width: 100%;
  }
  .link-card-url {
    flex-direction: column;
  }
  .link-url-field-sm {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  body.agent-coming-soon .agent-header {
    align-items: flex-start;
  }
  body.agent-coming-soon .brand-link {
    align-items: flex-start;
  }
  body.agent-coming-soon .hero-card h1 {
    max-width: none;
  }
}

/*# sourceMappingURL=agent.css.map */