* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f5f6f8;
  color: #111827;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
}

.sub { font-size: 12px; color: #6b7280; }

.container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  gap: 24px;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 20px;
}

.trade-form {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr auto;
  gap: 12px;
}

.trade-form input,
.trade-form select {
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

.trade-actions button {
  min-width: 110px;
  height: 44px;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.buy { background: #16a34a; color: white; }
.sell { background: #dc2626; color: white; }

.trade-table {
  width: 100%;
  border-collapse: collapse;
}

.trade-table th,
.trade-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.profit { color: #16a34a; font-weight: 600; }
.loss { color: #dc2626; font-weight: 600; }

.empty { text-align: center; color: #9ca3af; }

.manage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
  display: block;
}

.update-row {
  text-align: right;
  margin-top: 16px;
}

.update-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.log-box {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 6px;
}

.log-box ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12px;
}

@media (max-width: 768px) {
  .trade-form,
  .manage-grid {
    grid-template-columns: 1fr;
  }
}
