.tc-hidden { display: none !important; }

.tc-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: 0.3s ease-in-out;
}
.tc-toggle:hover {
  transform: translateY(-3.5px);
  background-color: var(--accent);
  color: var(--bg);
}

.tc-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 200px;
  padding: 14px;
  background: var(--text10);
  color: var(--text);
  border-radius: var(--border-radius);
  font-family: sans-serif;
  font-size: 13px;
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}

.tc-close {
  position: absolute;
  top: 4px;
  right: 6px;
  background: none;
  border: none;
  color: var(--text50);
  cursor: pointer;
  font-size: 15px;
  padding: 4px 6px;
  line-height: 1;
  transition: color 0.25s ease-in-out;
}
.tc-close:hover { color: var(--text); }

.tc-randomize {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  transition: 0.3s ease-in-out;
  margin-top: 18px;
}
.tc-randomize:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
}

.tc-advanced {
  border-top: 1px solid var(--text20);
  padding-top: 12px;
  margin-top: 12px;
}

.tc-group { margin-bottom: 12px; }
.tc-group:last-child { margin-bottom: 0; }

.tc-group-label {
  display: block;
  font-size: 11px;
  color: var(--text50);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.tc-schemes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tc-schemes button {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--text20);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  text-transform: lowercase;
  transition: 0.25s ease-in-out;
}
.tc-schemes button:hover { border-color: var(--accent); color: var(--accent); }
.tc-schemes button.tc-sel {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.tc-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.tc-role {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 8px;
  background: var(--text5);
  position: relative;
  min-width: 0;
}

.tc-sw {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--text20);
}

.tc-hex {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tc-lk {
  background: none;
  border: none;
  color: var(--text50);
  cursor: pointer;
  padding: 0;
  font-size: 10px;
  line-height: 1;
  transition: color 0.25s ease-in-out;
  flex-shrink: 0;
}
.tc-lk:hover { color: var(--text); }
.tc-lk.tc-on { color: var(--accent); }

.tc-role input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.tc-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.tc-link {
  text-decoration: none;
  color: var(--accent);
  font-size: 13px;
  position: relative;
  transition: color 0.25s ease-in-out;
}
.tc-link::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 0.5px;
  opacity: 0.7;
  background-color: var(--accent);
  transition: width 0.25s ease-in-out;
}
.tc-link:hover::before { width: 100%; }
