:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #07111f;
  color: #f7fbff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(3, 10, 22, 0.92) 0%, rgba(6, 18, 33, 0.78) 45%, rgba(7, 17, 31, 0.42) 100%),
    url("assets/autoflow-robot-bg.png") center / cover no-repeat fixed;
}

[hidden] {
  display: none !important;
}

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

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

.login-view,
.dashboard-view {
  min-height: 100vh;
  padding: 36px;
}

.login-view {
  align-items: center;
  display: flex;
}

.login-card {
  width: min(440px, 100%);
  background: rgba(8, 20, 39, 0.78);
  border: 1px solid rgba(130, 199, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  padding: 34px;
}

.brand-block {
  margin-bottom: 30px;
}

.eyebrow {
  color: #65d7ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 10px;
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.05;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 20px;
}

.legend {
  color: #b8c8dd;
  font-size: 14px;
  margin-top: 8px;
}

.login-form {
  display: grid;
  gap: 12px;
}

label {
  color: #d8e8fb;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(153, 209, 255, 0.36);
  border-radius: 6px;
  color: #ffffff;
  min-height: 46px;
  outline: none;
  padding: 0 13px;
}

select {
  cursor: pointer;
}

select option {
  background: #ffffff;
  color: #102033;
}

textarea {
  line-height: 1.4;
  min-height: 180px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #65d7ff;
  box-shadow: 0 0 0 3px rgba(101, 215, 255, 0.16);
}

.primary-button,
.start-button,
.ghost-button,
.provider-button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding: 0 16px;
}

.primary-button,
.start-button {
  background: linear-gradient(135deg, #00b8ff, #2c6dff);
  color: #ffffff;
  margin-top: 8px;
}

.primary-button:hover,
.start-button:hover {
  filter: brightness(1.08);
}

.primary-button:disabled,
.start-button:disabled,
.ghost-button:disabled,
.provider-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.62;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d9ebff;
}

.provider-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #172235;
  display: inline-flex;
  justify-content: center;
  margin-top: 0;
}

.provider-button:hover {
  background: #ffffff;
}

.auth-divider {
  align-items: center;
  color: #91a8c1;
  display: grid;
  font-size: 12px;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  margin: 2px 0;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  background: rgba(184, 200, 221, 0.24);
  content: "";
  height: 1px;
}

.danger-ghost-button {
  background: rgba(255, 77, 95, 0.12);
  border-color: rgba(255, 77, 95, 0.42);
  color: #ffdce1;
}

.danger-ghost-button:hover {
  background: rgba(255, 77, 95, 0.2);
}

.login-error {
  color: #ffb4b4;
  min-height: 20px;
  font-size: 13px;
}

.register-form {
  display: grid;
  gap: 16px;
}

#registerModal .modal-panel {
  max-width: 880px;
  width: min(880px, 100%);
}

.register-section {
  border: 1px solid rgba(130, 199, 255, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.register-section h4,
.register-section p {
  margin: 0;
}

.register-section-heading {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.register-section-heading p {
  color: #9fb2ca;
  font-size: 12px;
  margin-top: 4px;
}

#registerTotal {
  color: #8ee8ff;
  white-space: nowrap;
}

.register-field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.register-field-grid label {
  color: #bfd2e8;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}

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

.register-robot-option {
  align-items: start;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(130, 199, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 13px;
}

.register-robot-option:has(input:checked) {
  background: rgba(101, 215, 255, 0.12);
  border-color: rgba(101, 215, 255, 0.5);
}

.register-robot-option.is-disabled {
  cursor: default;
  opacity: 0.55;
}

.register-robot-option input {
  accent-color: #65d7ff;
  height: 18px;
  min-height: auto;
  width: 18px;
}

.register-robot-option > span {
  display: grid;
  gap: 7px;
}

.register-robot-heading {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.register-robot-heading b {
  color: #8ee8ff;
  font-size: 12px;
  white-space: nowrap;
}

.register-robot-option small {
  color: #9fb2ca;
  line-height: 1.4;
}

.account-section {
  margin-top: 18px;
}

.compact-account-form {
  align-items: end;
  margin: 16px 0;
}

.compact-account-form .modal-actions {
  align-self: end;
}

#subscriptionSummary {
  margin-top: 16px;
}

.dashboard-view {
  background: rgba(3, 10, 22, 0.72);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  padding: 0;
}

.dashboard-sidebar {
  background: rgba(4, 14, 28, 0.94);
  border-right: 1px solid rgba(130, 199, 255, 0.22);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  padding: 24px 18px;
}

.sidebar-brand {
  display: grid;
  gap: 4px;
}

.sidebar-brand strong {
  font-size: 24px;
}

.sidebar-brand span {
  color: #a9bbd2;
  font-size: 13px;
}

.sidebar-nav {
  align-content: start;
  display: grid;
  gap: 10px;
  margin-top: 28px;
  overflow-y: auto;
  padding-right: 2px;
}

.sidebar-nav-button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #c9dcf2;
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
}

.sidebar-nav-button:hover,
.sidebar-nav-button.is-active {
  background: rgba(101, 215, 255, 0.14);
  border-color: rgba(101, 215, 255, 0.28);
  color: #ffffff;
}

.sidebar-subnav {
  display: grid;
  gap: 6px;
  padding-left: 16px;
}

.sidebar-subnav-nested {
  border-left: 1px solid rgba(130, 199, 255, 0.18);
  margin-left: 9px;
  padding-left: 10px;
}

.sidebar-section-label {
  color: #6f8ba9;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 6px 12px 0;
  text-transform: uppercase;
}

.sidebar-section-label.is-coming-soon {
  opacity: 0.65;
}

.sidebar-subnav-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.sidebar-subnav-button {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid transparent;
  border-radius: 6px;
  color: #aecaeb;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  padding: 0 12px;
  text-align: left;
}

.sidebar-subnav-button:hover,
.sidebar-subnav-button.is-active {
  background: rgba(101, 215, 255, 0.12);
  border-color: rgba(101, 215, 255, 0.22);
  color: #ffffff;
}

.sidebar-logout {
  width: 100%;
}

.dashboard-content {
  min-width: 0;
  padding: 32px;
}

.dashboard-panel {
  margin: 0 auto;
  max-width: 1180px;
}

.dashboard-topbar {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(220px, 1fr) 320px;
  margin: 0 0 24px;
}

.dashboard-header {
  align-items: center;
  display: flex;
  gap: 20px;
  margin: 0;
  min-height: 108px;
}

.system-status-card {
  background: rgba(8, 20, 39, 0.88);
  border: 1px solid rgba(130, 199, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  padding: 16px;
}

.system-status-title {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.system-status-title h3 {
  font-size: 17px;
}

.status-updated {
  color: #91a9c5;
  font-size: 12px;
  white-space: nowrap;
}

.system-status-rows {
  display: grid;
  gap: 10px;
}

.dependency-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  min-height: 54px;
  padding: 10px;
}

.dependency-row-error {
  grid-template-columns: 14px minmax(0, 1fr);
}

.status-dot {
  border-radius: 50%;
  display: inline-block;
  height: 12px;
  width: 12px;
}

.status-ok {
  background: #25d366;
}

.status-error {
  background: #ff4d5f;
}

.status-waiting {
  background: #f3c969;
}

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

.dependency-copy strong,
.dependency-copy small {
  display: block;
}

.dependency-copy strong {
  color: #f7fbff;
  font-size: 13px;
}

.dependency-copy small {
  color: #a9bbd2;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dependency-badge {
  border-radius: 999px;
  color: #06101d;
  font-size: 11px;
  font-weight: 800;
  min-width: 46px;
  padding: 4px 8px;
  text-align: center;
}

.download-button {
  align-items: center;
  background: rgba(101, 215, 255, 0.12);
  border: 1px solid rgba(101, 215, 255, 0.34);
  border-radius: 6px;
  color: #dff6ff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  text-decoration: none;
  white-space: nowrap;
}

.download-button:hover {
  background: rgba(101, 215, 255, 0.2);
}

.agent-download-button {
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 184, 255, 0.28), rgba(44, 109, 255, 0.34));
  border: 1px solid rgba(101, 215, 255, 0.44);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  margin-top: 14px;
  min-height: 38px;
  padding: 0 14px;
  text-decoration: none;
  width: 100%;
}

.agent-download-button:hover {
  filter: brightness(1.1);
}

.robot-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 0;
  max-width: none;
}

.user-summary-grid {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 420px);
}

.robot-card,
.result-panel,
.user-info-card,
.survey-card,
.activity-dashboard,
.table-panel {
  background: rgba(8, 20, 39, 0.82);
  border: 1px solid rgba(130, 199, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.robot-card {
  display: grid;
  gap: 24px;
  min-height: 220px;
  padding: 22px;
}

.robot-card-wide {
  grid-column: 1 / -1;
}

.propia-filter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.zeta-filter-grid {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.zeta-filter-grid label {
  display: grid;
  gap: 6px;
}

.zeta-filter-grid span {
  color: #d8e8fb;
  font-size: 12px;
  font-weight: 800;
}

.zeta-filter-grid input,
.zeta-filter-grid select {
  min-height: 40px;
}

.zeta-filter-grid .is-invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14);
}

.zeta-range-help {
  color: #9bb1ca;
  font-size: 12px;
  grid-column: 1 / -1;
  margin: 0;
}

.propia-filter-grid label {
  display: grid;
  gap: 6px;
}

.propia-portal-fieldset {
  align-content: end;
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.propia-portal-fieldset legend {
  color: #d8e8fb;
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}

.propia-portal-fieldset label {
  align-items: center;
  color: #d8e8fb;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

.propia-portal-fieldset input {
  accent-color: #4da3ff;
  height: 16px;
  margin: 0;
  width: 16px;
}

.propia-filter-grid span {
  color: #d8e8fb;
  font-size: 12px;
  font-weight: 800;
}

.propia-filter-grid input,
.propia-filter-grid select {
  min-height: 40px;
}

.propia-filter-grid .propia-toggle-field {
  align-content: end;
}

.propia-filter-grid .propia-toggle-field input {
  width: 46px;
  min-height: 24px;
  margin: 8px 0;
  accent-color: #4da3ff;
}

.propia-filter-grid .is-invalid {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.14);
}

.user-info-card {
  padding: 22px;
}

.survey-card {
  margin-top: 18px;
  padding: 18px;
}

.survey-form {
  display: grid;
  gap: 14px;
}

.survey-form label {
  color: #ffffff;
  display: block;
  font-size: 20px;
  line-height: 1.25;
}

.survey-input-row {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.survey-input-row .primary-button {
  min-width: 120px;
}

.activity-dashboard {
  margin-top: 18px;
  padding: 18px;
}

.compact-heading {
  margin-bottom: 14px;
}

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

.metric-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  min-height: 82px;
  padding: 14px;
}

.metric-card span,
.metric-card strong {
  display: block;
}

.metric-card span {
  color: #91a9c5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  color: #f7fbff;
  font-size: 26px;
  margin-top: 8px;
}

.user-detail-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.user-detail-list div {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
}

.user-detail-list dt {
  color: #91a9c5;
  font-size: 12px;
  font-weight: 700;
}

.user-detail-list dd {
  color: #f7fbff;
  font-size: 14px;
  margin: 0;
}

.robot-card p,
.result-panel p {
  color: #b8c8dd;
  line-height: 1.45;
  margin-top: 8px;
}

.robot-type {
  color: #65d7ff;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.start-button {
  align-self: end;
  width: 160px;
}

.result-panel {
  display: grid;
  gap: 16px;
  margin: 18px 0 0;
  max-width: none;
  padding: 20px;
}

.panel-heading {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.table-panel {
  padding: 18px;
}

.table-panel + .table-panel {
  margin-top: 16px;
}

.table-section-heading {
  align-items: end;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.table-section-heading h3,
.table-section-heading p {
  margin: 0;
}

.table-section-heading h3 {
  color: #f7fbff;
  font-size: 18px;
}

.table-section-heading p {
  color: #91a9c5;
  font-size: 13px;
  margin-top: 5px;
}

.propia-searches-table {
  min-width: 1320px;
}

.zeta-overview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.zeta-executions-table {
  min-width: 900px;
}

.zeta-executions-table tbody tr {
  cursor: pointer;
  transition: background-color 140ms ease;
}

.zeta-executions-table tbody tr:hover,
.zeta-executions-table tbody tr:focus-visible,
.zeta-executions-table tbody tr.is-selected {
  background: rgba(101, 215, 255, 0.1);
  outline: 0;
}

.zeta-local-note {
  color: #91a9c5;
  font-size: 12px;
  line-height: 1.45;
  margin: 14px 0 0;
}

.zeta-detail-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin-bottom: 16px;
}

.zeta-detail-metric {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  min-height: 72px;
  padding: 12px;
}

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

.zeta-detail-metric span {
  color: #91a9c5;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.zeta-detail-metric strong {
  color: #f7fbff;
  font-size: 21px;
  margin-top: 8px;
}

.zeta-customer-detail-table {
  min-width: 1480px;
}

.zeta-client-name-cell {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zeta-message-id-cell {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zeta-error-cell {
  color: #ffb4bd !important;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zeta-coming-soon,
.zeta-config-panel {
  background: rgba(8, 20, 39, 0.82);
  border: 1px solid rgba(130, 199, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  padding: 24px;
}

.zeta-coming-soon {
  display: grid;
  gap: 10px;
  max-width: 720px;
  min-height: 210px;
  place-content: center;
  text-align: center;
}

.zeta-coming-soon span {
  color: #65d7ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.zeta-coming-soon h3,
.zeta-coming-soon p {
  margin: 0;
}

.zeta-coming-soon p {
  color: #9fb2ca;
  line-height: 1.5;
}

.zeta-config-warning {
  background: rgba(101, 215, 255, 0.08);
  border: 1px solid rgba(101, 215, 255, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  padding: 14px;
}

.zeta-config-warning strong {
  color: #dff7ff;
}

.zeta-config-warning span {
  color: #9fb2ca;
  font-size: 13px;
}

.zeta-config-form {
  display: grid;
  gap: 16px;
}

.zeta-config-form fieldset {
  border: 1px solid rgba(130, 199, 255, 0.2);
  border-radius: 8px;
  margin: 0;
  padding: 16px;
}

.zeta-config-form legend {
  color: #dff7ff;
  font-size: 14px;
  font-weight: 900;
  padding: 0 8px;
}

.zeta-config-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zeta-config-grid label {
  display: grid;
  gap: 7px;
}

.zeta-config-grid label span {
  color: #b9cee6;
  font-size: 12px;
  font-weight: 800;
}

.zeta-config-grid input {
  min-height: 42px;
}

.secret-input-control {
  align-items: stretch;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.secret-input-control input {
  min-width: 0;
  width: 100%;
}

.secret-visibility-button {
  align-items: center;
  background: rgba(101, 215, 255, 0.08);
  border: 1px solid rgba(130, 199, 255, 0.28);
  border-radius: 6px;
  color: #dff7ff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.secret-visibility-button:hover,
.secret-visibility-button:focus-visible,
.secret-visibility-button[aria-pressed="true"] {
  background: rgba(101, 215, 255, 0.16);
  border-color: rgba(101, 215, 255, 0.58);
  outline: 0;
}

.secret-visibility-button svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.zeta-config-wide {
  grid-column: 1 / -1;
}

.propia-searches-table tbody tr {
  cursor: pointer;
  transition: background-color 140ms ease;
}

.propia-searches-table tbody tr:hover,
.propia-searches-table tbody tr:focus-visible,
.propia-searches-table tbody tr.is-selected {
  background: rgba(101, 215, 255, 0.1);
  outline: 0;
}

.propia-search-name {
  color: #f7fbff;
  display: block;
  font-weight: 800;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.propia-search-filter-summary {
  color: #91a9c5;
  display: block;
  font-size: 11px;
  margin-top: 4px;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.propia-detail-heading {
  align-items: center;
}

.execution-picker {
  display: grid;
  gap: 6px;
  min-width: 250px;
}

.execution-picker span {
  color: #91a9c5;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.execution-picker select {
  min-height: 40px;
}

.propia-metrics-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  margin-bottom: 14px;
}

.propia-metric {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  min-height: 68px;
  padding: 11px;
}

.propia-metric span,
.propia-metric strong {
  display: block;
}

.propia-metric span {
  color: #91a9c5;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.propia-metric strong {
  color: #f7fbff;
  font-size: 18px;
  margin-top: 7px;
}

.variation-positive {
  color: #ffb76b !important;
}

.variation-negative {
  color: #71e6a0 !important;
}

.property-change-new {
  color: #71e6a0;
  font-weight: 800;
}

.table-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.table-search {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(130, 199, 255, 0.28);
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  max-width: 360px;
  min-height: 42px;
  padding: 10px 12px;
  width: min(100%, 360px);
}

.table-search::placeholder {
  color: #91a9c5;
}

.table-search:focus {
  border-color: rgba(101, 215, 255, 0.74);
  box-shadow: 0 0 0 3px rgba(101, 215, 255, 0.12);
  outline: 0;
}

.table-status {
  color: #a9bbd2;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 18px;
}

.table-scroll-sync {
  display: grid;
  gap: 8px;
}

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

.table-scroll-top {
  min-height: 14px;
  overflow-y: hidden;
}

.table-scroll-bottom {
  padding-bottom: 2px;
}

.table-scroll-spacer {
  height: 1px;
}

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

.data-table {
  border-collapse: collapse;
  min-width: 1080px;
  width: 100%;
}

.ruts-data-table {
  table-layout: fixed;
  min-width: 1160px;
}

.history-data-table {
  table-layout: fixed;
  min-width: 1040px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 12px 10px;
  text-align: left;
  white-space: nowrap;
}

.ruts-data-table th,
.ruts-data-table td {
  padding: 8px 10px;
}

.data-table th {
  color: #65d7ff;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table td {
  color: #eef6ff;
  font-size: 13px;
}

.actions-column {
  width: 188px;
}

.history-company-column {
  width: 250px;
}

.company-truncate-cell,
.rut-company-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rut-column {
  width: 145px;
}

.rut-company-column {
  width: 330px;
}

.rut-company-cell {
  max-width: 330px;
}

.company-truncate-cell {
  max-width: 250px;
}

.sort-button {
  align-items: flex-start;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 4px;
  justify-items: start;
  letter-spacing: inherit;
  min-height: 0;
  padding: 0;
  text-align: left;
  text-transform: inherit;
  width: 100%;
}

.sort-button:hover,
.sort-button.is-active {
  color: #dff7ff;
}

.sort-button:focus-visible {
  outline: 2px solid rgba(101, 215, 255, 0.72);
  outline-offset: 3px;
}

.sort-button-centered {
  justify-items: center;
  text-align: center;
}

.sort-indicator {
  background: rgba(101, 215, 255, 0.1);
  border: 1px solid rgba(101, 215, 255, 0.24);
  border-radius: 999px;
  color: #9edfff;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  padding: 4px 7px;
  text-transform: none;
}

.sort-button.is-active .sort-indicator {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.34);
  color: #b8ffd6;
}

.property-results-toolbar {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 0;
}

.property-results-sort-label {
  color: #91a9c5;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.property-sort-options {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 2px 5px;
}

.property-sort-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(153, 209, 255, 0.17);
  border-radius: 6px;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  justify-items: normal;
  letter-spacing: 0;
  min-height: 34px;
  padding: 6px 9px;
  width: auto;
}

.property-sort-button:hover,
.property-sort-button.is-active {
  background: rgba(101, 215, 255, 0.11);
  border-color: rgba(101, 215, 255, 0.35);
}

.property-sort-button .sort-indicator {
  font-size: 9px;
  padding: 3px 6px;
}

.property-results-list {
  display: grid;
  gap: 12px;
}

.property-result-card {
  background: rgba(4, 14, 29, 0.82);
  border: 1px solid rgba(130, 199, 255, 0.19);
  border-radius: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.65fr);
  min-height: 218px;
  overflow: hidden;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.property-result-card:hover {
  background: rgba(7, 21, 40, 0.9);
  border-color: rgba(101, 215, 255, 0.4);
}

.property-card-main {
  min-width: 0;
  padding: 22px 24px;
}

.property-card-title {
  color: #f7fbff;
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
  text-decoration: none;
  white-space: normal;
}

a.property-card-title:hover {
  color: #83ddff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a.property-card-title:focus-visible {
  border-radius: 3px;
  outline: 2px solid #65d7ff;
  outline-offset: 4px;
}

.property-card-price-line {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.property-card-currency {
  color: #8ddfff;
  font-size: 14px;
  font-weight: 800;
}

.property-card-price {
  color: #ffffff;
  font-size: 25px;
  line-height: 1.1;
}

.property-card-location {
  color: #b8c8dd;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.property-card-facts {
  display: grid;
  gap: 12px 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 20px 0 0;
}

.property-card-fact {
  min-width: 0;
}

.property-card-fact dt {
  color: #829ab7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.property-card-fact dd {
  color: #edf7ff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.property-card-side {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: flex-start;
  min-width: 0;
  padding: 18px 20px;
}

.property-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.property-card-badge {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #c9daed;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  padding: 6px 9px;
}

.property-card-badge.property-change-new {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.28);
}

.property-card-portal {
  background: rgba(101, 215, 255, 0.1);
  border-color: rgba(101, 215, 255, 0.24);
  color: #a9e8ff;
}

.property-card-secondary {
  align-self: flex-end;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-width: 100%;
  text-align: right;
}

.property-card-secondary p {
  display: grid;
  gap: 3px;
}

.property-card-secondary span {
  color: #7791af;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.property-card-secondary strong {
  color: #dcecff;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.property-opportunity-form {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: grid;
  gap: 11px;
  margin-top: auto;
  padding-top: 17px;
}

.property-opportunity-form h4 {
  color: #edf7ff;
  font-size: 14px;
  line-height: 1.35;
  margin: 0 0 2px;
}

.property-opportunity-form label {
  display: grid;
  gap: 6px;
}

.property-opportunity-form label > span {
  color: #8fa6c1;
  font-size: 11px;
  font-weight: 800;
}

.property-opportunity-form input {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(153, 209, 255, 0.2);
  border-radius: 6px;
  color: #f5fbff;
  font: inherit;
  letter-spacing: 0;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.property-opportunity-form input:focus {
  border-color: #65d7ff;
  outline: 2px solid rgba(101, 215, 255, 0.16);
  outline-offset: 1px;
}

.property-opportunity-submit {
  min-height: 40px;
  width: 100%;
}

.property-opportunity-status {
  color: #91a8c2;
  font-size: 11px;
  line-height: 1.35;
  margin: 0;
  min-height: 15px;
}

.property-opportunity-status.is-success {
  color: #8ff0b6;
}

.property-opportunity-status.is-error {
  color: #ffaaa4;
}

.propia-opportunities-table {
  min-width: 1060px;
}

.propia-opportunities-table th:first-child,
.propia-opportunities-table td:first-child {
  min-width: 330px;
  white-space: normal;
}

.opportunity-property-link {
  color: #dff6ff;
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
}

a.opportunity-property-link:hover {
  color: #83ddff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.opportunity-property-portal {
  color: #7891ad;
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-top: 5px;
  text-transform: uppercase;
}

.opportunity-status-cell {
  min-width: 150px;
}

.opportunity-status-select {
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  min-height: 36px;
  min-width: 132px;
  padding: 7px 10px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  width: auto;
}

.opportunity-status-select.is-negotiating {
  background: rgba(245, 185, 52, 0.2);
  border-color: #d9ad3d;
  color: #ffe7a6;
}

.opportunity-status-select.is-closed {
  background: rgba(44, 190, 110, 0.2);
  border-color: #3abb78;
  color: #b7f7cf;
}

.opportunity-status-select.is-cancelled {
  background: rgba(232, 77, 85, 0.2);
  border-color: #dc5960;
  color: #ffc2c5;
}

.opportunity-status-select:disabled {
  cursor: wait;
  opacity: 0.65;
}

.opportunity-status-select option {
  background: #0b1728;
  color: #f5fbff;
}

.rut-robot-header {
  width: 180px;
  text-align: center !important;
}

.rut-robot-header > span {
  display: block;
}

.rut-select-all-button {
  background: rgba(101, 215, 255, 0.1);
  border: 1px solid rgba(101, 215, 255, 0.34);
  border-radius: 6px;
  color: #dff7ff;
  cursor: pointer;
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin: 0 auto 9px;
  min-height: 30px;
  padding: 6px 10px;
  text-transform: none;
  white-space: nowrap;
}

.rut-select-all-button:hover {
  background: rgba(101, 215, 255, 0.18);
}

.rut-select-all-button:disabled {
  cursor: wait;
  opacity: 0.56;
}

.rut-robot-cell {
  text-align: center !important;
}

.rut-robot-checkbox {
  accent-color: #25d366;
  cursor: pointer;
  height: 17px;
  min-height: auto;
  width: 17px;
}

.rut-robot-checkbox:disabled {
  cursor: wait;
  opacity: 0.65;
}

.rut-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  justify-content: flex-start;
}

.table-action-button {
  background: rgba(101, 215, 255, 0.12);
  border: 1px solid rgba(101, 215, 255, 0.34);
  border-radius: 6px;
  color: #dff6ff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  min-height: 28px;
  padding: 0 9px;
  white-space: nowrap;
}

.table-action-button:hover {
  background: rgba(101, 215, 255, 0.2);
}

.table-action-danger {
  background: rgba(255, 77, 95, 0.11);
  border-color: rgba(255, 77, 95, 0.36);
  color: #ffccd2;
}

.table-action-danger:hover {
  background: rgba(255, 77, 95, 0.18);
}

.settings-panel {
  background: rgba(8, 20, 39, 0.82);
  border: 1px solid rgba(130, 199, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  max-width: 760px;
  padding: 22px;
}

.settings-form {
  display: grid;
  gap: 12px;
}

.settings-readonly-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6px;
}

.settings-readonly-grid div {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px;
}

.settings-readonly-grid span {
  color: #91a9c5;
  font-size: 12px;
  font-weight: 700;
}

.settings-readonly-grid strong {
  color: #f7fbff;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  min-width: 86px;
  padding: 7px 10px;
  justify-content: center;
}

.status-pill-ok {
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.54);
  color: #80ffad;
}

.status-pill-error {
  background: rgba(255, 77, 95, 0.15);
  border: 1px solid rgba(255, 77, 95, 0.54);
  color: #ffb4bd;
}

.days-overdue {
  color: #ffb4bd !important;
  font-weight: 800;
}

.modal-backdrop {
  align-items: center;
  background: rgba(1, 7, 16, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 20;
}

.modal-panel {
  background: rgba(8, 20, 39, 0.96);
  border: 1px solid rgba(130, 199, 255, 0.32);
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.54);
  max-height: calc(100vh - 48px);
  max-width: 620px;
  overflow: auto;
  padding: 22px;
  width: min(620px, 100%);
}

.modal-heading {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #d9ebff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.rut-modal-form {
  display: grid;
  gap: 12px;
}

.rut-robot-selection {
  border: 1px solid rgba(130, 199, 255, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
}

.rut-robot-selection legend {
  color: #d9ebff;
  font-size: 13px;
  font-weight: 800;
  padding: 0 6px;
}

.rut-robot-selection label {
  align-items: center;
  color: #eef6ff;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 12px;
  justify-content: space-between;
}

.rut-robot-selection input {
  accent-color: #25d366;
  cursor: pointer;
  height: 18px;
  min-height: auto;
  width: 18px;
}

.rut-robot-selection[hidden] {
  display: none;
}

.modal-status {
  color: #b8ffd6;
  font-size: 13px;
  min-height: 18px;
}

.modal-status.is-error {
  color: #ffb4b4;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

pre {
  background: rgba(1, 7, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #b8ffd6;
  margin: 0;
  min-height: 190px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

@media (max-width: 1100px) {
  .robot-grid {
    grid-template-columns: 1fr;
  }

  .propia-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zeta-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .propia-metrics-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

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

  .property-card-side {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    min-height: 108px;
  }

  .property-card-secondary {
    margin-top: 28px;
  }

  .property-opportunity-form {
    max-width: 460px;
    width: 100%;
  }

  .zeta-detail-metrics {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .zeta-config-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .login-view,
  .dashboard-view {
    padding: 22px;
  }

  .dashboard-view {
    display: block;
    padding: 0;
  }

  .dashboard-sidebar {
    border-bottom: 1px solid rgba(130, 199, 255, 0.22);
    border-right: 0;
    min-height: auto;
  }

  .dashboard-content {
    padding: 22px;
  }

  .dashboard-header {
    align-items: stretch;
    display: grid;
  }

  .dashboard-topbar,
  .user-summary-grid,
  .activity-stats-grid,
  .register-field-grid,
  .register-robot-catalog,
  .propia-metrics-grid,
  .zeta-overview-grid,
  .zeta-detail-metrics,
  .zeta-config-grid,
  .survey-input-row,
  .settings-readonly-grid {
    grid-template-columns: 1fr;
  }

  .register-section-heading,
  .register-robot-heading {
    display: grid;
  }

  .table-section-heading {
    align-items: stretch;
    display: grid;
  }

  .execution-picker {
    min-width: 0;
  }

  .panel-heading,
  .modal-heading,
  .modal-actions {
    align-items: stretch;
    display: grid;
  }

  .panel-actions {
    justify-content: stretch;
  }

  .dependency-row {
    grid-template-columns: 14px minmax(0, 1fr) auto;
  }

  .download-button {
    grid-column: 2 / -1;
    width: 100%;
  }

  h1 {
    font-size: 30px;
  }

  .start-button {
    width: 100%;
  }

  .propia-filter-grid {
    grid-template-columns: 1fr;
  }

  .property-results-toolbar {
    align-items: stretch;
    display: grid;
  }

  .property-card-main,
  .property-card-side {
    padding: 18px;
  }

  .property-card-title {
    font-size: 18px;
  }

  .property-card-price {
    font-size: 22px;
  }

  .property-card-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .property-card-badges {
    justify-content: flex-start;
  }

  .property-card-secondary {
    align-self: flex-start;
    text-align: left;
  }

  .zeta-filter-grid {
    grid-template-columns: 1fr;
  }
}
