.tsd-page {
  min-height: 100vh;
  background: #1a1a1a;
  color: #fff;
  font-family: "Segoe UI", sans-serif;
}

.tsd-header {
  background: #111;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tsd-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tsd-logout button {
  background: #333;
  color: #fff;
  border: 0;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
}

.tsd-main {
  padding: 0.5rem;
}

.tsd-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 480px;
  margin: 0 auto;
}

.tsd-menu-item {
  display: block;
  padding: 1.1rem 1rem;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);
}

.tsd-menu-tasks {
  position: relative;
}

.tsd-task-badge {
  position: absolute;
  top: 50%;
  right: 1rem;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.4rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.tsd-menu-stock { background: #7f8c8d; }
.tsd-menu-sync { background: #c0392b; margin-top: 0.5rem; }

.tsd-op {
  max-width: 480px;
  margin: 0 auto;
  padding: 0.5rem;
}

.tsd-back {
  color: #aaa;
  text-decoration: none;
  font-size: 0.95rem;
}

.tsd-op-title {
  font-size: 1.2rem;
  margin: 0.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #888;
}

.tsd-sync-title { border-color: #c0392b; }

.tsd-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.tsd-field span {
  font-size: 0.85rem;
  color: #bbb;
}

.tsd-field input {
  font-size: 1.2rem;
  padding: 0.75rem;
  border: 2px solid #444;
  border-radius: 6px;
  background: #222;
  color: #fff;
}

.tsd-product-hint {
  background: #2c3e50;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin: -0.5rem 0 1rem;
  font-size: 0.95rem;
}

.tsd-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: 0;
  border-radius: 6px;
  color: #fff;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.tsd-submit-secondary {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  border: 2px solid #555;
  border-radius: 6px;
  background: transparent;
  color: #ccc;
  cursor: pointer;
}

.tsd-error {
  background: #5c1a1a;
  color: #ffb3b3;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.tsd-ok {
  background: #1a4d2e;
  color: #b8f0c8;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.tsd-stock-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.tsd-stock-list li {
  background: #222;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  display: grid;
  gap: 0.25rem;
}

.tsd-stock-list em {
  font-style: normal;
  font-size: 1.2rem;
  color: #2ecc71;
}

.tsd-empty { color: #888; }

.tsd-exchange-stats {
  background: #222;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  line-height: 1.6;
}
