/* Step 2 UI polish for the agent portal. Loaded after the main stylesheet. */
:root {
  --agent-focus: rgba(11, 125, 242, 0.16);
}

.topbar {
  align-items: center;
}

.brand-mark {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.topnav a {
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

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

.public-shell,
.workspace {
  position: relative;
}

.public-copy,
.auth-card,
.hero-copy,
.invite-panel,
.panel-card,
.stat-card,
.agent-action-card,
.agent-shortcuts a,
.table-wrap,
.ticket-list,
.ticket-detail,
.support-reply {
  outline: 1px solid rgba(255, 255, 255, 0.5);
}

.public-copy {
  align-content: center;
}

.public-metrics div {
  display: grid;
  align-content: center;
  min-height: 104px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 250, 0.92));
}

.auth-card {
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #0b7df2, #15a36b, #f2a20c);
  content: "";
}

.tab-button,
.button,
.input {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

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

.input:focus {
  box-shadow: 0 0 0 4px var(--agent-focus);
}

.workspace .stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.workspace .stat-card {
  display: grid;
  align-content: space-between;
}

.workspace .operation-panel,
.workspace .dashboard-grid,
.workspace .table-grid,
.workspace .support-layout {
  align-items: start;
}

.workspace .agent-shortcuts a {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.workspace .agent-shortcuts a:hover {
  border-color: rgba(11, 125, 242, 0.22);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.workspace .panel-card {
  overflow: hidden;
}

.workspace .section-header {
  gap: 12px;
}

.workspace .table-wrap {
  border-radius: 8px;
}

@media (max-width: 760px) {
  .topnav a:hover,
  .button:hover,
  .workspace .agent-shortcuts a:hover {
    transform: none;
  }

  .public-copy {
    order: 2;
  }

  .auth-card {
    order: 1;
  }

  .public-metrics div {
    min-height: 84px;
  }

  .workspace .stats-grid,
  .workspace .agent-shortcuts,
  .workspace .invite-actions {
    grid-template-columns: 1fr;
  }
}
